From 72fc6bf105f4b712d5a6f991746fd2f9084893fc Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Tue, 1 Sep 2020 20:20:34 -0400 Subject: Updated docs --- examples/modular_subcommands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/modular_subcommands.py') diff --git a/examples/modular_subcommands.py b/examples/modular_subcommands.py index 94959349..4445fde2 100644 --- a/examples/modular_subcommands.py +++ b/examples/modular_subcommands.py @@ -62,7 +62,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) @@ -92,7 +92,7 @@ class ExampleApp(cmd2.Cmd): self.unregister_command_set(self._vegetables) self.poutput('Vegetables unloaded') - cut_parser = cmd2.Cmd2ArgumentParser('cut') + cut_parser = cmd2.Cmd2ArgumentParser() cut_subparsers = cut_parser.add_subparsers(title='item', help='item to cut') @with_argparser(cut_parser) -- cgit v1.2.1