Skip to content

Commit 9f5bddb

Browse files
authored
Merge pull request #193 from kmvanbrunt/working
Corrected help text for shortcuts since they don't have to be single key
2 parents 30a50a2 + b96a418 commit 9f5bddb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ def _help_menu(self):
10281028
def do_shortcuts(self, args):
10291029
"""Lists shortcuts (aliases) available."""
10301030
result = "\n".join('%s: %s' % (sc[0], sc[1]) for sc in sorted(self.shortcuts))
1031-
self.stdout.write("Single-key shortcuts for other commands:\n{}\n".format(result))
1031+
self.stdout.write("Shortcuts for other commands:\n{}\n".format(result))
10321032

10331033
# noinspection PyUnusedLocal
10341034
def do_eof(self, arg):

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"""
3737

3838
# Output from the shortcuts command with default built-in shortcuts
39-
SHORTCUTS_TXT = """Single-key shortcuts for other commands:
39+
SHORTCUTS_TXT = """Shortcuts for other commands:
4040
!: shell
4141
?: help
4242
@: load

0 commit comments

Comments
 (0)