diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-03-15 16:22:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-15 16:22:37 -0400 |
commit | cbf0c9a75131a3a2afa54f41a88fd20c31c34bc8 (patch) | |
tree | de43683d0f75ed86e7e0140afaf8add867692a49 /tests/test_completion.py | |
parent | c357f9b04b96ca31d26003e7e71e4f95a95a02e3 (diff) | |
parent | 2329eede4c3e54ac2b669106bd1c3c4cf8043019 (diff) | |
download | cmd2-git-cbf0c9a75131a3a2afa54f41a88fd20c31c34bc8.tar.gz |
Merge pull request #312 from python-cmd2/moresub
Moresub
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: |