https://github.com/python/cpython/commit/eb320f5ac846faa9ad81fc0c07553cf5b181652d
commit: eb320f5ac846faa9ad81fc0c07553cf5b181652d
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-10-10T21:18:01+03:00
summary:

[3.12] Note argparse exit code in documentation (GH-119568) (GH-125275)

(cherry picked from commit 3b87fb74c907510402678bf1b7c4a94df0e5e65a)

Co-authored-by: Justin Kunimune <[email protected]>
Co-authored-by: Savannah Ostrowski <[email protected]>

files:
M Doc/library/argparse.rst

diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index abe20d7d611695..6d8b207cbc03ab 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -537,7 +537,8 @@ exit_on_error
 ^^^^^^^^^^^^^
 
 Normally, when you pass an invalid argument list to the 
:meth:`~ArgumentParser.parse_args`
-method of an :class:`ArgumentParser`, it will exit with error info.
+method of an :class:`ArgumentParser`, it will print a *message* to 
:data:`sys.stderr` and exit with a status
+code of 2.
 
 If the user would like to catch errors manually, the feature can be enabled by 
setting
 ``exit_on_error`` to ``False``::

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to