summaryrefslogtreecommitdiff
path: root/examples/modular_commands_dynamic.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-09-03 23:21:50 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-09-03 23:21:50 -0400
commit7d3f27273e64f4c30852ea1f7fe0b79520f6cc7e (patch)
tree340a418a46e66c407898fc91fea4813b6f5161a0 /examples/modular_commands_dynamic.py
parentf1ac4d0fb0e6cccbc0e180b6d3320f48015fad41 (diff)
parentde0261325a91dfdbe1571135ce078a978a2aaad8 (diff)
downloadcmd2-git-7d3f27273e64f4c30852ea1f7fe0b79520f6cc7e.tar.gz
Merge branch '2.0' into read_input
Diffstat (limited to 'examples/modular_commands_dynamic.py')
-rw-r--r--examples/modular_commands_dynamic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/modular_commands_dynamic.py b/examples/modular_commands_dynamic.py
index eb6283a7..b2be5dd1 100644
--- a/examples/modular_commands_dynamic.py
+++ b/examples/modular_commands_dynamic.py
@@ -50,7 +50,7 @@ class ExampleApp(cmd2.Cmd):
self._fruits = LoadableFruits()
self._vegetables = LoadableVegetables()
- load_parser = cmd2.Cmd2ArgumentParser('load')
+ load_parser = cmd2.Cmd2ArgumentParser()
load_parser.add_argument('cmds', choices=['fruits', 'vegetables'])
@with_argparser(load_parser)