From: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> Date: Sun, 20 Oct 2019 20:13:54 +0000 (+0300) Subject: bpo-38531: document extend action's added version (GH-16865) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74142078b3b78fea7b4cd791e5c577c0c0964eb7;p=python bpo-38531: document extend action's added version (GH-16865) --- diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 00115d5cd1..818acf484c 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -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"]) 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 ``BooleanOptionalAction`` is available in ``argparse`` and adds support for boolean actions such as