diff options
Diffstat (limited to 'examples/subcommands.py')
-rwxr-xr-x | examples/subcommands.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/subcommands.py b/examples/subcommands.py index dd69d97e..56c91b14 100755 --- a/examples/subcommands.py +++ b/examples/subcommands.py @@ -68,6 +68,7 @@ class SubcommandsExample(cmd2.Cmd): Example cmd2 application where we a base command which has a couple subcommands and the "sport" subcommand has tab completion enabled. """ + def __init__(self): super().__init__() @@ -114,5 +115,6 @@ class SubcommandsExample(cmd2.Cmd): if __name__ == '__main__': import sys + app = SubcommandsExample() sys.exit(app.cmdloop()) |