summaryrefslogtreecommitdiff
path: root/examples/exit_code.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2021-01-31 22:29:57 -0500
committerTodd Leonhardt <todd.leonhardt@gmail.com>2021-01-31 22:29:57 -0500
commitf456b802754c3d1095b488d670bebba21018d823 (patch)
treebf7011f585a8a35ab4cc7ff98aaeebed4de87f84 /examples/exit_code.py
parent918200c02d392c17862fff81bbf58820ed15c725 (diff)
downloadcmd2-git-f456b802754c3d1095b488d670bebba21018d823.tar.gz
Add black for automatic code format
Diffstat (limited to 'examples/exit_code.py')
-rwxr-xr-xexamples/exit_code.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/exit_code.py b/examples/exit_code.py
index 062ee12d..a35b4df8 100755
--- a/examples/exit_code.py
+++ b/examples/exit_code.py
@@ -2,9 +2,7 @@
# coding=utf-8
"""A simple example demonstrating the following how to emit a non-zero exit code in your cmd2 application.
"""
-from typing import (
- List,
-)
+from typing import List
import cmd2
@@ -36,6 +34,7 @@ Usage: exit [exit_code]
if __name__ == '__main__':
import sys
+
app = ReplWithExitCode()
sys_exit_code = app.cmdloop()
app.poutput('{!r} exiting with code: {}'.format(sys.argv[0], sys_exit_code))