summaryrefslogtreecommitdiff
path: root/examples/exit_code.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-04-25 12:42:37 -0400
committerGitHub <noreply@github.com>2020-04-25 12:42:37 -0400
commitd4653e6fccf0bc15d04075110769c11befb22819 (patch)
treea04ca95d6f67bae491f290cc71036d2a4f6b168c /examples/exit_code.py
parent9c7bbfa5bdbf8c8d81c0cd3c3cd5179d700de0b2 (diff)
parent9b78cf4913202995dcf065ecf5077bf16fa01f95 (diff)
downloadcmd2-git-d4653e6fccf0bc15d04075110769c11befb22819.tar.gz
Merge pull request #931 from python-cmd2/branching_strategy
Added info on SemVer and branching strategy to CONTRIBUTING.md
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."""