diff options
Diffstat (limited to 'examples/hooks.py')
-rwxr-xr-x | examples/hooks.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/hooks.py b/examples/hooks.py index dd21e58a..c533c696 100755 --- a/examples/hooks.py +++ b/examples/hooks.py @@ -111,5 +111,6 @@ class CmdLineApp(cmd2.Cmd): if __name__ == '__main__': + import sys c = CmdLineApp() - c.cmdloop() + sys.exit(c.cmdloop()) |