summaryrefslogtreecommitdiff
path: root/examples/modular_commands_basic.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/modular_commands_basic.py')
-rw-r--r--examples/modular_commands_basic.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/modular_commands_basic.py b/examples/modular_commands_basic.py
index 9f4a0bd2..b9d4c4a2 100644
--- a/examples/modular_commands_basic.py
+++ b/examples/modular_commands_basic.py
@@ -13,11 +13,11 @@ class AutoLoadCommandSet(CommandSet):
def __init__(self):
super().__init__()
- def do_hello(self, cmd: cmd2.Cmd, _: cmd2.Statement):
- cmd.poutput('Hello')
+ def do_hello(self, _: cmd2.Statement):
+ self._cmd.poutput('Hello')
- def do_world(self, cmd: cmd2.Cmd, _: cmd2.Statement):
- cmd.poutput('World')
+ def do_world(self, _: cmd2.Statement):
+ self._cmd.poutput('World')
class ExampleApp(cmd2.Cmd):