diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-08-28 00:59:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 00:59:10 -0400 |
commit | 36b0b75265942fe375545beb7d2d8a2c5f6f63c4 (patch) | |
tree | a05524c8f7fc3c56776e32648b5808252c7e6d51 /docs/features | |
parent | 47f8652fa467b2d140b1097b3167f968b0188451 (diff) | |
parent | e3ed15ed375674729d65e4f594a8958ea91ae684 (diff) | |
download | cmd2-git-36b0b75265942fe375545beb7d2d8a2c5f6f63c4.tar.gz |
Merge pull request #988 from python-cmd2/add_help1.3.8
Removed need to set add_help to False for @as_subcommand_to decorator
Diffstat (limited to 'docs/features')
-rw-r--r-- | docs/features/modular_commands.rst | 4 |
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) |