diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-08-27 13:44:24 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-08-27 13:44:24 -0400 |
commit | e650fc3defd7ddeb32eeadeeddccda370539ce1d (patch) | |
tree | a4809c8dcdbc3dcf4e1af624ba0e824f0a7c2861 /examples/modular_subcommands.py | |
parent | 5942f2105eb83140a8ab37e655e2561c4d17d3a2 (diff) | |
parent | e3a07c59b541b4a0b937c62ef38be6d8c011c0a3 (diff) | |
download | cmd2-git-e650fc3defd7ddeb32eeadeeddccda370539ce1d.tar.gz |
Merge branch 'master' into 2.0
Diffstat (limited to 'examples/modular_subcommands.py')
-rw-r--r-- | examples/modular_subcommands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/modular_subcommands.py b/examples/modular_subcommands.py index 44d4edd8..0b1f4ed3 100644 --- a/examples/modular_subcommands.py +++ b/examples/modular_subcommands.py @@ -98,7 +98,7 @@ class ExampleApp(cmd2.Cmd): @with_argparser(cut_parser) def do_cut(self, ns: argparse.Namespace): # Call handler for whatever subcommand was selected - handler = ns.get_handler() + handler = ns.cmd2_handler.get() if handler is not None: handler(ns) else: |