diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-31 22:29:57 -0500 |
|---|---|---|
| committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-31 22:29:57 -0500 |
| commit | f456b802754c3d1095b488d670bebba21018d823 (patch) | |
| tree | bf7011f585a8a35ab4cc7ff98aaeebed4de87f84 /examples/exit_code.py | |
| parent | 918200c02d392c17862fff81bbf58820ed15c725 (diff) | |
| download | cmd2-git-f456b802754c3d1095b488d670bebba21018d823.tar.gz | |
Add black for automatic code format
Diffstat (limited to 'examples/exit_code.py')
| -rwxr-xr-x | examples/exit_code.py | 5 |
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)) |
