summaryrefslogtreecommitdiff
path: root/docs/features/commands.rst
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2021-03-23 11:51:24 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2021-03-23 11:51:24 -0400
commit3126eb792816e09ce56f24262447077df1bdc0c3 (patch)
tree3a80de210c8fc8fe49a0597e7b45bd638699a231 /docs/features/commands.rst
parent3a4893ec32c6d38cad344667fead93e2eed8dc88 (diff)
downloadcmd2-git-exit_code.tar.gz
No longer using -1 as an exit codeexit_code
Diffstat (limited to 'docs/features/commands.rst')
-rw-r--r--docs/features/commands.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/features/commands.rst b/docs/features/commands.rst
index 3b35a19b..66745469 100644
--- a/docs/features/commands.rst
+++ b/docs/features/commands.rst
@@ -142,7 +142,7 @@ The ``cmd2.Cmd`` object sets an ``exit_code`` attribute to zero when it is
instantiated. The value of this attribute is returned from the ``cmdloop()``
call. Therefore, if you don't do anything with this attribute in your code,
``cmdloop()`` will (almost) always return zero. There are a few built-in
-``cmd2`` commands which set ``exit_code`` to ``-1`` if an error occurs.
+``cmd2`` commands which set ``exit_code`` to ``1`` if an error occurs.
You can use this capability to easily return your own values to the operating
system shell::