mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
bpo-38531: document extend action's added version (GH-16865)
This commit is contained in:
parent
c93883c6af
commit
74142078b3
1 changed files with 2 additions and 0 deletions
|
|
@ -838,6 +838,8 @@ how the command-line arguments should be handled. The supplied actions are:
|
|||
>>> parser.parse_args(["--foo", "f1", "--foo", "f2", "f3", "f4"])
|
||||
Namespace(foo=['f1', 'f2', 'f3', 'f4'])
|
||||
|
||||
.. versionadded:: 3.8
|
||||
|
||||
You may also specify an arbitrary action by passing an Action subclass or
|
||||
other object that implements the same interface. The ``BooleanOptionalAction``
|
||||
is available in ``argparse`` and adds support for boolean actions such as
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue