summaryrefslogtreecommitdiff
path: root/examples/exit_code.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/exit_code.py')
-rwxr-xr-xexamples/exit_code.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/exit_code.py b/examples/exit_code.py
index f4b19091..89ed86cd 100755
--- a/examples/exit_code.py
+++ b/examples/exit_code.py
@@ -2,9 +2,10 @@
# coding=utf-8
"""A simple example demonstrating the following how to emit a non-zero exit code in your cmd2 application.
"""
-import cmd2
from typing import List
+import cmd2
+
class ReplWithExitCode(cmd2.Cmd):
""" Example cmd2 application where we can specify an exit code when existing."""