Skip to content

Commit 7414207

Browse files
isidenticalrhettinger
authored andcommitted
bpo-38531: document extend action's added version (GH-16865)
1 parent c93883c commit 7414207

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/library/argparse.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,8 @@ how the command-line arguments should be handled. The supplied actions are:
838838
>>> parser.parse_args(["--foo", "f1", "--foo", "f2", "f3", "f4"])
839839
Namespace(foo=['f1', 'f2', 'f3', 'f4'])
840840

841+
.. versionadded:: 3.8
842+
841843
You may also specify an arbitrary action by passing an Action subclass or
842844
other object that implements the same interface. The ``BooleanOptionalAction``
843845
is available in ``argparse`` and adds support for boolean actions such as

0 commit comments

Comments
 (0)