Skip to content

gh-121018: ensure ArgumentParser.parse_args with exit_on_error=False raises instead of exiting when given unrecognized arguments - #121019

Merged
serhiy-storchaka merged 3 commits into
python:mainfrom
blhsing:fix-argparse-exit-on-error-with-unrecognized-args
Jun 26, 2024
Merged

gh-121018: ensure ArgumentParser.parse_args with exit_on_error=False raises instead of exiting when given unrecognized arguments#121019
serhiy-storchaka merged 3 commits into
python:mainfrom
blhsing:fix-argparse-exit-on-error-with-unrecognized-args

Conversation

@blhsing

@blhsingblhsing commented Jun 26, 2024

Copy link
Copy Markdown
Contributor

@blhsingblhsing changed the title gh-121018: ensure ArgumentParser.parse_args raises instead of exiting when given unrecognized argumentsgh-121018: ensure ArgumentParser.parse_args with exit_on_error=False raises instead of exiting when given unrecognized argumentsJun 26, 2024

@serhiy-storchakaserhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@miss-islington-app

Copy link
Copy Markdown

Thanks @blhsing for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @blhsing for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 26, 2024
…False raises instead of exiting when given unrecognized arguments (pythonGH-121019)
(cherry picked from commit 0654336)
Co-authored-by: blhsing <blhsing@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 26, 2024
…False raises instead of exiting when given unrecognized arguments (pythonGH-121019)
(cherry picked from commit 0654336)
Co-authored-by: blhsing <blhsing@gmail.com>
@bedevere-app

Copy link
Copy Markdown

GH-121031 is a backport of this pull request to the 3.12 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.12 only security fixes label Jun 26, 2024
@bedevere-app

Copy link
Copy Markdown

GH-121032 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.13 bugs and security fixes label Jun 26, 2024
@blhsing
blhsing deleted the fix-argparse-exit-on-error-with-unrecognized-args branch June 26, 2024 07:44
serhiy-storchaka pushed a commit that referenced this pull request Jun 26, 2024
…=False raises instead of exiting when given unrecognized arguments (GH-121019) (GH-121032)
(cherry picked from commit 0654336)
Co-authored-by: blhsing <blhsing@gmail.com>
serhiy-storchaka pushed a commit that referenced this pull request Jun 26, 2024
…=False raises instead of exiting when given unrecognized arguments (GH-121019) (GH-121031)
(cherry picked from commit 0654336)
Co-authored-by: blhsing <blhsing@gmail.com>
mrahtz pushed a commit to mrahtz/cpython that referenced this pull request Jun 30, 2024
…False raises instead of exiting when given unrecognized arguments (pythonGH-121019)
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
…False raises instead of exiting when given unrecognized arguments (pythonGH-121019)
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
…False raises instead of exiting when given unrecognized arguments (pythonGH-121019)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@blhsing@serhiy-storchaka