summaryrefslogtreecommitdiff
path: root/examples/python_scripting.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python_scripting.py')
-rwxr-xr-xexamples/python_scripting.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/python_scripting.py b/examples/python_scripting.py
index 7847b8b6..da7d0f6a 100755
--- a/examples/python_scripting.py
+++ b/examples/python_scripting.py
@@ -117,5 +117,6 @@ class CmdLineApp(cmd2.Cmd):
if __name__ == '__main__':
+ import sys
c = CmdLineApp()
- c.cmdloop()
+ sys.exit(c.cmdloop())