diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-03-14 22:32:52 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-03-14 22:32:52 -0400 |
commit | 365b025be72f2b565919b73646f28b187ec0ded1 (patch) | |
tree | 24be9d38e4a6fd457ef6a8945f0b60b5d424e670 /tests/test_completion.py | |
parent | de0a252cd0f7d65685a103e1f7e8525f1c804e1b (diff) | |
download | cmd2-git-365b025be72f2b565919b73646f28b187ec0ded1.tar.gz |
No longer need to manually specify subcommand names for tab completion
Diffstat (limited to 'tests/test_completion.py')
-rw-r--r-- | tests/test_completion.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py index 28dfb1ad..c1111ab9 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -615,10 +615,7 @@ class SubcommandsExample(cmd2.Cmd): parser_bar.add_argument('z', help='string') parser_bar.set_defaults(func=base_bar) - # Create a list of subcommand names, which is used to enable tab-completion of sub-commands - subcommands = ['foo', 'bar'] - - @cmd2.with_argparser(base_parser, subcommands) + @cmd2.with_argparser(base_parser) def do_base(self, args): """Base command help""" try: |