summaryrefslogtreecommitdiff
path: root/examples/modular_commands_dynamic.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-09-03 22:52:50 -0400
committerGitHub <noreply@github.com>2020-09-03 22:52:50 -0400
commite7bf6c193e7adb55986af730eb5bbd9facb182f7 (patch)
tree96e4fa1ac5cb57696aef2a0b454e0265dc5825c3 /examples/modular_commands_dynamic.py
parent36b0b75265942fe375545beb7d2d8a2c5f6f63c4 (diff)
parent85ad31905780b19d2c16965110eda7577c057708 (diff)
downloadcmd2-git-e7bf6c193e7adb55986af730eb5bbd9facb182f7.tar.gz
Merge pull request #990 from python-cmd2/on_registered
Added callbacks to CommandSet
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)