Skip to content

Commit db38522

Browse files
miss-islingtonisidentical
authored andcommitted
bpo-38531: document extend action's added version (GH-16865) (GH-16868)
(cherry picked from commit 7414207) Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
1 parent c39bc5c commit db38522

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
@@ -810,6 +810,8 @@ how the command-line arguments should be handled. The supplied actions are:
810810
>>> parser.parse_args(["--foo", "f1", "--foo", "f2", "f3", "f4"])
811811
Namespace(foo=['f1', 'f2', 'f3', 'f4'])
812812

813+
.. versionadded:: 3.8
814+
813815
You may also specify an arbitrary action by passing an Action subclass or
814816
other object that implements the same interface. The recommended way to do
815817
this is to extend :class:`Action`, overriding the ``__call__`` method

0 commit comments

Comments
 (0)