Fix documentation typos of argparse exit_on_error (GH-22706)

This commit is contained in:
Taneli Hukkinen 2021-04-26 06:04:26 +02:00 committed by GitHub
parent b3dec6f9ed
commit 7be870f945
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -659,7 +659,7 @@ 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.
If the user would like catch errors manually, the feature can be enable by setting
If the user would like to catch errors manually, the feature can be enabled by setting
``exit_on_error`` to ``False``::
>>> parser = argparse.ArgumentParser(exit_on_error=False)