Skip to content

Commit 036f1bd

Browse files
authored
Merge pull request #40 from rust-lang/help-menu-help-command
Add the ?help command to the help menu
2 parents 16c0305 + d617533 commit 036f1bd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ impl Commands {
7373
}
7474

7575
pub(crate) fn menu(&mut self) -> Option<String> {
76+
self.menu.as_mut().map(|menu| *menu += "?help\n");
7677
self.menu.take()
7778
}
7879

0 commit comments

Comments
 (0)