Skip to content

Commit

Permalink
Fix documentation typos of argparse exit_on_error (GH-22706) (GH-25617)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7be870f)

Co-authored-by: Taneli Hukkinen <hukkinj1@users.noreply.github.com>
  • Loading branch information
miss-islington and hukkinj1 committed Apr 26, 2021
1 parent a3c6752 commit 4cb9816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/library/argparse.rst
Expand Up @@ -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)
Expand Down

0 comments on commit 4cb9816

Please sign in to comment.