bpo-38531: document extend action's added version (GH-16865)

This commit is contained in:
Batuhan Taşkaya 2019-10-20 23:13:54 +03:00 committed by Raymond Hettinger
parent c93883c6af
commit 74142078b3
1 changed files with 2 additions and 0 deletions

View File

@ -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