From 3126eb792816e09ce56f24262447077df1bdc0c3 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Tue, 23 Mar 2021 11:51:24 -0400 Subject: No longer using -1 as an exit code --- docs/features/commands.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') 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:: -- cgit v1.2.1