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