summaryrefslogtreecommitdiff
path: root/examples/modular_commands
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-09-03 23:21:39 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-09-03 23:21:39 -0400
commitde0261325a91dfdbe1571135ce078a978a2aaad8 (patch)
treea57ce89e0465aaa3ed2feb46aef359fe18c07071 /examples/modular_commands
parentdf703af969219665b7d672025bf9b26f75a76285 (diff)
parent1054dda76b87d9f7f77311d8d804c1017b668996 (diff)
downloadcmd2-git-de0261325a91dfdbe1571135ce078a978a2aaad8.tar.gz
Merge branch 'master' into 2.0
Diffstat (limited to 'examples/modular_commands')
-rw-r--r--examples/modular_commands/commandset_complex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/modular_commands/commandset_complex.py b/examples/modular_commands/commandset_complex.py
index a4343ae3..94f8b5f4 100644
--- a/examples/modular_commands/commandset_complex.py
+++ b/examples/modular_commands/commandset_complex.py
@@ -19,7 +19,7 @@ class CommandSetA(cmd2.CommandSet):
"""Banana Command"""
self._cmd.poutput('Banana!!')
- cranberry_parser = cmd2.Cmd2ArgumentParser('cranberry')
+ cranberry_parser = cmd2.Cmd2ArgumentParser()
cranberry_parser.add_argument('arg1', choices=['lemonade', 'juice', 'sauce'])
@cmd2.with_argparser(cranberry_parser, with_unknown_args=True)
@@ -43,7 +43,7 @@ class CommandSetA(cmd2.CommandSet):
def complete_durian(self, text: str, line: str, begidx: int, endidx: int) -> List[str]:
return self._cmd.basic_complete(text, line, begidx, endidx, ['stinks', 'smells', 'disgusting'])
- elderberry_parser = cmd2.Cmd2ArgumentParser('elderberry')
+ elderberry_parser = cmd2.Cmd2ArgumentParser()
elderberry_parser.add_argument('arg1')
@cmd2.with_category('Alone')