summaryrefslogtreecommitdiff
path: root/examples/dynamic_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dynamic_commands.py')
-rwxr-xr-xexamples/dynamic_commands.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/dynamic_commands.py b/examples/dynamic_commands.py
index 620acb7f..4fc2629f 100755
--- a/examples/dynamic_commands.py
+++ b/examples/dynamic_commands.py
@@ -13,6 +13,7 @@ CATEGORY = 'Dynamic Commands'
class CommandsInLoop(cmd2.Cmd):
"""Example of dynamically adding do_* commands."""
+
def __init__(self):
# Add dynamic commands before calling cmd2.Cmd's init since it validates command names
for command in COMMAND_LIST: