summaryrefslogtreecommitdiff
path: root/examples/subcommands.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/subcommands.py')
-rwxr-xr-xexamples/subcommands.py5
1 files changed, 1 insertions, 4 deletions
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: