summaryrefslogtreecommitdiff
path: root/docs/features/modular_commands.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/features/modular_commands.rst')
-rw-r--r--docs/features/modular_commands.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/features/modular_commands.rst b/docs/features/modular_commands.rst
index 4abeda2d..43779872 100644
--- a/docs/features/modular_commands.rst
+++ b/docs/features/modular_commands.rst
@@ -244,7 +244,7 @@ command and each CommandSet
def do_apple(self, _: cmd2.Statement):
self._cmd.poutput('Apple')
- banana_parser = cmd2.Cmd2ArgumentParser(add_help=False)
+ banana_parser = cmd2.Cmd2ArgumentParser()
banana_parser.add_argument('direction', choices=['discs', 'lengthwise'])
@cmd2.as_subcommand_to('cut', 'banana', banana_parser)
@@ -261,7 +261,7 @@ command and each CommandSet
def do_arugula(self, _: cmd2.Statement):
self._cmd.poutput('Arugula')
- bokchoy_parser = cmd2.Cmd2ArgumentParser(add_help=False)
+ bokchoy_parser = cmd2.Cmd2ArgumentParser()
bokchoy_parser.add_argument('style', choices=['quartered', 'diced'])
@cmd2.as_subcommand_to('cut', 'bokchoy', bokchoy_parser)