diff options
author | Eric Lin <anselor@gmail.com> | 2020-08-12 13:08:59 -0400 |
---|---|---|
committer | anselor <anselor@gmail.com> | 2020-08-12 17:41:20 -0400 |
commit | 774fb39d7e259d0679c573b0d893293f9ed9aed9 (patch) | |
tree | a78a4693e7cca707668eb89b0d8e41c3fedd108e /examples/modular_commands/commandset_custominit.py | |
parent | 4d628ea7573ef9016971dbbf7de9126c6d179227 (diff) | |
download | cmd2-git-774fb39d7e259d0679c573b0d893293f9ed9aed9.tar.gz |
Breaking change: Removed cmd2 app as a required second parameter to
CommandSet command functions (do_, complete_, help_).
Renamed install_command_set and uninstall_command_set to
register_command_set and unregister_command_set.
Diffstat (limited to 'examples/modular_commands/commandset_custominit.py')
-rw-r--r-- | examples/modular_commands/commandset_custominit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/modular_commands/commandset_custominit.py b/examples/modular_commands/commandset_custominit.py index 5a574a59..2ef94a75 100644 --- a/examples/modular_commands/commandset_custominit.py +++ b/examples/modular_commands/commandset_custominit.py @@ -14,7 +14,7 @@ class CustomInitCommandSet(CommandSet): self._arg2 = arg2 def do_show_arg1(self, cmd: Cmd, _: Statement): - cmd.poutput('Arg1: ' + self._arg1) + self._cmd.poutput('Arg1: ' + self._arg1) def do_show_arg2(self, cmd: Cmd, _: Statement): - cmd.poutput('Arg2: ' + self._arg2) + self._cmd.poutput('Arg2: ' + self._arg2) |