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 ba292cc commit eb320f5Copy full SHA for eb320f5
Doc/library/argparse.rst
@@ -537,7 +537,8 @@ exit_on_error
537
^^^^^^^^^^^^^
538
539
Normally, when you pass an invalid argument list to the :meth:`~ArgumentParser.parse_args`
540
-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
541
+code of 2.
542
543
If the user would like to catch errors manually, the feature can be enabled by setting
544
``exit_on_error`` to ``False``::
0 commit comments