mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Fix documentation typos of argparse exit_on_error (GH-22706)
This commit is contained in:
parent
b3dec6f9ed
commit
7be870f945
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue