summaryrefslogtreecommitdiff
path: root/examples/modular_subcommands.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/modular_subcommands.py')
-rw-r--r--examples/modular_subcommands.py2
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: