We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c901437 commit 3b87fb7Copy full SHA for 3b87fb7
Doc/library/argparse.rst
@@ -541,7 +541,8 @@ exit_on_error
541
^^^^^^^^^^^^^
542
543
Normally, when you pass an invalid argument list to the :meth:`~ArgumentParser.parse_args`
544
-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
545
+code of 2.
546
547
If the user would like to catch errors manually, the feature can be enabled by setting
548
``exit_on_error`` to ``False``::
0 commit comments