diff options
-rwxr-xr-x | cmd2/argparse_completer.py | 2 | ||||
-rw-r--r-- | tests/test_autocompletion.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/argparse_completer.py b/cmd2/argparse_completer.py index 02f64979..21e116ed 100755 --- a/cmd2/argparse_completer.py +++ b/cmd2/argparse_completer.py @@ -719,7 +719,7 @@ class ACHelpFormatter(argparse.RawTextHelpFormatter): def _format_usage(self, usage, actions, groups, prefix) -> str: if prefix is None: - prefix = _('usage: ') + prefix = _('Usage: ') # if usage is specified, use that if usage is not None: diff --git a/tests/test_autocompletion.py b/tests/test_autocompletion.py index 8035587a..c6c1d1f6 100644 --- a/tests/test_autocompletion.py +++ b/tests/test_autocompletion.py @@ -34,9 +34,9 @@ optional arguments: single value - maximum duration [a, b] - duration range''' -MEDIA_MOVIES_ADD_HELP = '''Usage: media movies add title {G, PG, PG-13, R, NC-17} [actor [...]] - -d DIRECTOR{1..2} +MEDIA_MOVIES_ADD_HELP = '''Usage: media movies add -d DIRECTOR{1..2} [-h] + title {G, PG, PG-13, R, NC-17} [actor [...]] positional arguments: title Movie Title |