]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-125355: Rewrite parse_intermixed_args() in argparse (GH-125356)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 22 Oct 2024 10:57:25 +0000 (13:57 +0300)
committerGitHub <noreply@github.com>
Tue, 22 Oct 2024 10:57:25 +0000 (10:57 +0000)
commit759a54d28ffe7eac8c23917f5d3dfad8309856be
tree17102747f71a1597192c16963e4b07c20727b612
parent57e3c59bb64fc2f8b2845a7e03ab0abb029ccd02
gh-125355: Rewrite parse_intermixed_args() in argparse (GH-125356)

* The parser no longer changes temporarily during parsing.
* Default values are not processed twice.
* Required mutually exclusive groups containing positional arguments are
  now supported.
* The missing arguments report now includes the names of all required
  optional and positional arguments.
* Unknown options can be intermixed with positional arguments in
  parse_known_intermixed_args().
Lib/argparse.py
Lib/test/test_argparse.py
Misc/NEWS.d/next/Library/2024-10-22-13-28-00.gh-issue-125355.zssHm_.rst [new file with mode: 0644]