summaryrefslogtreecommitdiff
path: root/examples/hooks.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hooks.py')
-rwxr-xr-xexamples/hooks.py3
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())