diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-09-17 10:04:25 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-09-17 10:04:25 -0400 |
commit | 17eefdeb934525772885ff31f80a0d5a016a5b52 (patch) | |
tree | af2c2be429ebf31183826fceaafe23581a38a3b4 /tests/test_completion.py | |
parent | 60ab11c3166a2a76bf67774c67b583d7d30fe5be (diff) | |
download | cmd2-git-17eefdeb934525772885ff31f80a0d5a016a5b52.tar.gz |
No longer printing all help text for alias and macro when the subcommand is omitted. Instead allow argparse to handle the error.
Diffstat (limited to 'tests/test_completion.py')
-rwxr-xr-x | tests/test_completion.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py index fb0d74e0..c7d9bd21 100755 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -1179,7 +1179,7 @@ def test_cmd2_help_subcommand_completion_with_flags_before_command(scu_app): first_match = complete_tester(text, line, begidx, endidx, scu_app) assert first_match is not None and scu_app.completion_matches == ['bar', 'foo', 'sport'] -def test_complete_help_subcommand_with_blank_command(scu_app): +def test_complete_help_subcommands_with_blank_command(scu_app): text = '' line = 'help "" {}'.format(text) endidx = len(line) |