summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-08-23 23:36:42 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2018-08-23 23:36:42 -0400
commit2b2110ad24b64d022128051169a3515257922c8f (patch)
treec32bdc75e4139e338d9b6afb67fd41360c9799a1 /docs
parent0ad6b6d5417d0d126dc39550d5416f266cc47ec5 (diff)
downloadcmd2-git-2b2110ad24b64d022128051169a3515257922c8f.tar.gz
Added way of returning a non-zero exit code to the shell
Diffstat (limited to 'docs')
-rw-r--r--docs/unfreefeatures.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/unfreefeatures.rst b/docs/unfreefeatures.rst
index 41144c8f..cd27745d 100644
--- a/docs/unfreefeatures.rst
+++ b/docs/unfreefeatures.rst
@@ -182,3 +182,10 @@ Presents numbered options to user, as bash ``select``.
2. salty
Sauce? 2
wheaties with salty sauce, yum!
+
+
+Exit code to shell
+==================
+The ``self.exit_code`` attribute of your ``cmd2`` application controls
+what exit code is sent to the shell when your application exits from
+``cmdloop()``.