From 774fb39d7e259d0679c573b0d893293f9ed9aed9 Mon Sep 17 00:00:00 2001 From: Eric Lin Date: Wed, 12 Aug 2020 13:08:59 -0400 Subject: 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. --- examples/modular_commands/commandset_custominit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/modular_commands/commandset_custominit.py') 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) -- cgit v1.2.1