]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38531: document extend action's added version (GH-16865) (GH-16868)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 20 Oct 2019 20:25:25 +0000 (13:25 -0700)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Sun, 20 Oct 2019 20:25:25 +0000 (13:25 -0700)
(cherry picked from commit 74142078b3b78fea7b4cd791e5c577c0c0964eb7)

Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
Doc/library/argparse.rst

index ee00559485c1da12f9bdb597b0f8a7091ed48d44..5a61a5bf8ed90b0494a2f346046f532ef514d757 100644 (file)
@@ -810,6 +810,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 recommended way to do
 this is to extend :class:`Action`, overriding the ``__call__`` method