diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-26 10:16:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-26 10:16:19 (GMT) |
commit | 6bc7e2cca546c11e2b807068a4a612d0d902da11 (patch) | |
tree | 374d556e5636337664110c374687daa47e28a676 /Misc/NEWS.d/next/Library/2024-06-26-03-04-24.gh-issue-121018.clVSc4.rst | |
parent | f2b4f517b9a0dbe4d2ebd1e1912615ede46d7aec (diff) | |
download | cpython-6bc7e2cca546c11e2b807068a4a612d0d902da11.zip cpython-6bc7e2cca546c11e2b807068a4a612d0d902da11.tar.gz cpython-6bc7e2cca546c11e2b807068a4a612d0d902da11.tar.bz2 |
[3.13] gh-121018: Ensure ArgumentParser.parse_args with exit_on_error=False raises instead of exiting when given unrecognized arguments (GH-121019) (GH-121032)
(cherry picked from commit 0654336dd5138aec04e3017e15ccbb90a44e053d)
Co-authored-by: blhsing <blhsing@gmail.com>
Diffstat (limited to 'Misc/NEWS.d/next/Library/2024-06-26-03-04-24.gh-issue-121018.clVSc4.rst')
-rw-r--r-- | Misc/NEWS.d/next/Library/2024-06-26-03-04-24.gh-issue-121018.clVSc4.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-06-26-03-04-24.gh-issue-121018.clVSc4.rst b/Misc/NEWS.d/next/Library/2024-06-26-03-04-24.gh-issue-121018.clVSc4.rst new file mode 100644 index 0000000..fdc3c5f --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-06-26-03-04-24.gh-issue-121018.clVSc4.rst @@ -0,0 +1,2 @@ +Fixed an issue where :meth:`!argparse.ArgumentParser.parses_args` did not honor ``exit_on_error=False`` when given unrecognized arguments.
+Patch by Ben Hsing.
|