diff options
author | Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> | 2019-10-20 20:13:54 (GMT) |
---|---|---|
committer | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2019-10-20 20:13:54 (GMT) |
commit | 74142078b3b78fea7b4cd791e5c577c0c0964eb7 (patch) | |
tree | ca3d73427da0b0ef14944b2f5fee29ce3522845c /Doc | |
parent | c93883c6afbd99929516764263fc49c3e996b10a (diff) | |
download | cpython-74142078b3b78fea7b4cd791e5c577c0c0964eb7.zip cpython-74142078b3b78fea7b4cd791e5c577c0c0964eb7.tar.gz cpython-74142078b3b78fea7b4cd791e5c577c0c0964eb7.tar.bz2 |
bpo-38531: document extend action's added version (GH-16865)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/argparse.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 00115d5..818acf4 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 |