[Python-checkins] Fix documentation typos of argparse exit_on_error (GH-22706) (GH-25617)
orsenthil
webhook-mailer at python.org
Mon Apr 26 00:06:59 EDT 2021
https://github.com/python/cpython/commit/4cb98169b3e27f48c8d438acaf1944fd0e816127
commit: 4cb98169b3e27f48c8d438acaf1944fd0e816127
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: orsenthil <skumaran at gatech.edu>
date: 2021-04-25T21:06:55-07:00
summary:
Fix documentation typos of argparse exit_on_error (GH-22706) (GH-25617)
(cherry picked from commit 7be870f9456ad04c3b67881497de6346d83805d2)
Co-authored-by: Taneli Hukkinen <hukkinj1 at users.noreply.github.com>
files:
M Doc/library/argparse.rst
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 4542961d7816e..75e083a2d9072 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -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)
More information about the Python-checkins
mailing list