bpo-38531: document extend action's added version (GH-16865)
This commit is contained in:
parent
c93883c6af
commit
74142078b3
|
@ -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"])
|
>>> parser.parse_args(["--foo", "f1", "--foo", "f2", "f3", "f4"])
|
||||||
Namespace(foo=['f1', '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
|
You may also specify an arbitrary action by passing an Action subclass or
|
||||||
other object that implements the same interface. The ``BooleanOptionalAction``
|
other object that implements the same interface. The ``BooleanOptionalAction``
|
||||||
is available in ``argparse`` and adds support for boolean actions such as
|
is available in ``argparse`` and adds support for boolean actions such as
|
||||||
|
|
Loading…
Reference in New Issue