summaryrefslogtreecommitdiff
path: root/examples/modular_commands/commandset_custominit.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/modular_commands/commandset_custominit.py')
-rw-r--r--examples/modular_commands/commandset_custominit.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/examples/modular_commands/commandset_custominit.py b/examples/modular_commands/commandset_custominit.py
index d96c5f1c..fa26644b 100644
--- a/examples/modular_commands/commandset_custominit.py
+++ b/examples/modular_commands/commandset_custominit.py
@@ -2,19 +2,7 @@
"""
A simple example demonstrating a loadable command set
"""
-from cmd2 import Cmd, CommandSet, Statement, register_command, with_category, with_default_category
-
-
-@register_command
-@with_category("AAA")
-def do_another_command(cmd: Cmd, statement: Statement):
- """
- This is an example of registering an unbound function
- :param cmd:
- :param statement:
- :return:
- """
- cmd.poutput('Another Unbound Command: {}'.format(statement.args))
+from cmd2 import Cmd, CommandSet, Statement, with_category, with_default_category
@with_default_category('Custom Init')