diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-08-23 23:36:42 -0400 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-08-23 23:36:42 -0400 |
commit | 2b2110ad24b64d022128051169a3515257922c8f (patch) | |
tree | c32bdc75e4139e338d9b6afb67fd41360c9799a1 /docs | |
parent | 0ad6b6d5417d0d126dc39550d5416f266cc47ec5 (diff) | |
download | cmd2-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.rst | 7 |
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()``. |