]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix documentation typos of argparse exit_on_error (GH-22706) (GH-25617)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 26 Apr 2021 04:06:55 +0000 (21:06 -0700)
committerGitHub <noreply@github.com>
Mon, 26 Apr 2021 04:06:55 +0000 (21:06 -0700)
(cherry picked from commit 7be870f9456ad04c3b67881497de6346d83805d2)

Co-authored-by: Taneli Hukkinen <hukkinj1@users.noreply.github.com>
Doc/library/argparse.rst

index 4542961d7816ea5ba26c427c41f859bdb45cb941..75e083a2d907241f2d4d5497bfdb0386a20d29a0 100644 (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)