From 365b025be72f2b565919b73646f28b187ec0ded1 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Wed, 14 Mar 2018 22:32:52 -0400 Subject: No longer need to manually specify subcommand names for tab completion --- examples/subcommands.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/subcommands.py') diff --git a/examples/subcommands.py b/examples/subcommands.py index a278fd8b..59ebe4cb 100755 --- a/examples/subcommands.py +++ b/examples/subcommands.py @@ -42,10 +42,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'] - - @with_argparser(base_parser, subcommands) + @with_argparser(base_parser) def do_base(self, args): """Base command help""" try: -- cgit v1.2.1