René's URL Explorer Experiment


Title: gh-121018: Fix more cases of exiting in argparse when exit_on_error=False by serhiy-storchaka · Pull Request #121056 · python/cpython · GitHub

Open Graph Title: gh-121018: Fix more cases of exiting in argparse when exit_on_error=False by serhiy-storchaka · Pull Request #121056 · python/cpython

X Title: gh-121018: Fix more cases of exiting in argparse when exit_on_error=False by serhiy-storchaka · Pull Request #121056 · python/cpython

Description: parse_intermixed_args() now raises ArgumentError instead of calling error() if exit_on_error is false. Internal code now always raises ArgumentError instead of calling error(). It is then caught at...

Open Graph Description: parse_intermixed_args() now raises ArgumentError instead of calling error() if exit_on_error is false. Internal code now always raises ArgumentError instead of calling error(). It is then caught at...

X Description: parse_intermixed_args() now raises ArgumentError instead of calling error() if exit_on_error is false. Internal code now always raises ArgumentError instead of calling error(). It is then caught at...

Opengraph URL: https://github.com/python/cpython/pull/121056

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:10c336b6-2850-2bdc-9dcc-3b3a28cb5389
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id94B2:2603AD:C84E38:1088A30:696B5CB9
html-safe-nonce35981f15027fec01d944fa16ed33063816d66d4fa933f9af2f4becd08500bc7f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEIyOjI2MDNBRDpDODRFMzg6MTA4OEEzMDo2OTZCNUNCOSIsInZpc2l0b3JfaWQiOiI4NzAxNjU0MjEzNjI1MzM5MDY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace609620ec1680897a1d69beea3334ebd766fda3093f19dd4e54b579959366c08
hovercard-subject-tagpull_request:1940591476
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/121056/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7e1f7e15a5adf1349a239d3383204a0bbd09298fe78dc033443bcc0681291615/python/cpython/pull/121056
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7e1f7e15a5adf1349a239d3383204a0bbd09298fe78dc033443bcc0681291615/python/cpython/pull/121056
og:image:altparse_intermixed_args() now raises ArgumentError instead of calling error() if exit_on_error is false. Internal code now always raises ArgumentError instead of calling error(). It is then caught at...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/121056#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F121056
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F121056
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/121056
Reloadhttps://github.com/python/cpython/pull/121056
Reloadhttps://github.com/python/cpython/pull/121056
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/121056
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/121056
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/121056#issue-comment-box
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:argparse-exit_on_errorhttps://github.com/serhiy-storchaka/cpython/tree/argparse-exit_on_error
gh-121018: Fix more cases of exiting in argparse when exit_on_error=False https://github.com/python/cpython/pull/121056#top
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:argparse-exit_on_errorhttps://github.com/serhiy-storchaka/cpython/tree/argparse-exit_on_error
Conversation 5 https://github.com/python/cpython/pull/121056
Commits 1 https://github.com/python/cpython/pull/121056/commits
Checks 0 https://github.com/python/cpython/pull/121056/checks
Files changed https://github.com/python/cpython/pull/121056/files
Please reload this pagehttps://github.com/python/cpython/pull/121056
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Jun 26, 2024https://github.com/python/cpython/pull/121056#issue-2375960194
Please reload this pagehttps://github.com/python/cpython/pull/121056
argparse.ArgumentParser.parses_args does not honor exit_on_error=False when given unrecognized arguments #121018https://github.com/python/cpython/issues/121018
Please reload this pagehttps://github.com/python/cpython/pull/121056
https://github.com/serhiy-storchaka
pythongh-121018https://github.com/python/cpython/issues/121018
: Fix more cases of exiting in argparse when exit_on_e…https://github.com/python/cpython/pull/121056/commits/fdcadd51b17c346349065ca59b7b80adc92a1c01
fdcadd5https://github.com/python/cpython/pull/121056/commits/fdcadd51b17c346349065ca59b7b80adc92a1c01
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Jun 26, 2024https://github.com/python/cpython/pull/121056#event-13302328708
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 26, 2024 https://github.com/python/cpython/pull/121056#ref-issue-2374080325
argparse.ArgumentParser.parses_args does not honor exit_on_error=False when given unrecognized arguments #121018 https://github.com/python/cpython/issues/121018
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jun 26, 2024https://github.com/python/cpython/pull/121056#event-13302329871
argparse exits on error even when exit_on_error=False #103498 https://github.com/python/cpython/issues/103498
Argparse.parse_args exits on unrecognized option with exit_on_error=False #85427 https://github.com/python/cpython/issues/85427
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
81a654ahttps://github.com/python/cpython/commit/81a654a3425eaa05a51342509089533c1f623f1b
Jun 28, 2024https://github.com/python/cpython/pull/121056#event-13332485317
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jun 28, 2024https://github.com/python/cpython/pull/121056#issuecomment-2197056300
@serhiy-storchakahttps://github.com/serhiy-storchaka
Please reload this pagehttps://github.com/python/cpython/pull/121056
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jun 28, 2024https://github.com/python/cpython/pull/121056#event-13332486044
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
June 28, 2024 14:22https://github.com/python/cpython/pull/121056#event-13332486459
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jun 28, 2024https://github.com/python/cpython/pull/121056#issuecomment-2197056549
@serhiy-storchakahttps://github.com/serhiy-storchaka
cherry_pickerhttps://pypi.org/project/cherry-picker/
Please reload this pagehttps://github.com/python/cpython/pull/121056
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
serhiy-storchakahttps://github.com/serhiy-storchaka
Jun 28, 2024https://github.com/python/cpython/pull/121056#event-13332487383
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jun 28, 2024https://github.com/python/cpython/pull/121056#issuecomment-2197057696
@serhiy-storchakahttps://github.com/serhiy-storchaka
cherry_pickerhttps://pypi.org/project/cherry-picker/
Please reload this pagehttps://github.com/python/cpython/pull/121056
serhiy-storchakahttps://github.com/serhiy-storchaka
Jun 28, 2024 https://github.com/python/cpython/pull/121056#ref-commit-4921ac8
https://github.com/serhiy-storchaka
[3.13]https://github.com/serhiy-storchaka/cpython/commit/4921ac8a7daf304a9ee54de1e45bcbd546ae757d
pythongh-121018https://github.com/python/cpython/issues/121018
: Fix more cases of exiting in argparse when ex…https://github.com/serhiy-storchaka/cpython/commit/4921ac8a7daf304a9ee54de1e45bcbd546ae757d
4921ac8https://github.com/serhiy-storchaka/cpython/commit/4921ac8a7daf304a9ee54de1e45bcbd546ae757d
pythonGH-121056https://github.com/python/cpython/pull/121056
81a654ahttps://github.com/serhiy-storchaka/cpython/commit/81a654a3425eaa05a51342509089533c1f623f1b
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 28, 2024https://github.com/python/cpython/pull/121056#issuecomment-2197074255
GH-121128https://github.com/python/cpython/pull/121128
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/121056
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Jun 28, 2024https://github.com/python/cpython/pull/121056#event-13332586800
serhiy-storchakahttps://github.com/serhiy-storchaka
Jun 28, 2024 https://github.com/python/cpython/pull/121056#ref-commit-8ad9e73
https://github.com/serhiy-storchaka
[3.12]https://github.com/serhiy-storchaka/cpython/commit/8ad9e7344ef8167f94744aff506d768b7247324a
pythongh-121018https://github.com/python/cpython/issues/121018
: Fix more cases of exiting in argparse when ex…https://github.com/serhiy-storchaka/cpython/commit/8ad9e7344ef8167f94744aff506d768b7247324a
8ad9e73https://github.com/serhiy-storchaka/cpython/commit/8ad9e7344ef8167f94744aff506d768b7247324a
pythonGH-121056https://github.com/python/cpython/pull/121056
81a654ahttps://github.com/serhiy-storchaka/cpython/commit/81a654a3425eaa05a51342509089533c1f623f1b
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 28, 2024https://github.com/python/cpython/pull/121056#issuecomment-2197084129
GH-121129https://github.com/python/cpython/pull/121129
3.12 branchhttps://github.com/python/cpython/tree/3.12
Please reload this pagehttps://github.com/python/cpython/pull/121056
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
Jun 28, 2024https://github.com/python/cpython/pull/121056#event-13332654895
serhiy-storchakahttps://github.com/serhiy-storchaka
Jun 28, 2024 https://github.com/python/cpython/pull/121056#ref-commit-8ea6cc1
https://github.com/serhiy-storchaka
[3.12]https://github.com/python/cpython/commit/8ea6cc14a5178b456278c35f63b0859c6b5f4f64
gh-121018https://github.com/python/cpython/issues/121018
: Fix more cases of exiting in argparse when exit_on_…https://github.com/python/cpython/commit/8ea6cc14a5178b456278c35f63b0859c6b5f4f64
8ea6cc1https://github.com/python/cpython/commit/8ea6cc14a5178b456278c35f63b0859c6b5f4f64
GH-121056https://github.com/python/cpython/pull/121056
GH-121129https://github.com/python/cpython/pull/121129
81a654ahttps://github.com/python/cpython/commit/81a654a3425eaa05a51342509089533c1f623f1b
serhiy-storchakahttps://github.com/serhiy-storchaka
Jun 28, 2024 https://github.com/python/cpython/pull/121056#ref-commit-99de20d
https://github.com/serhiy-storchaka
[3.13]https://github.com/python/cpython/commit/99de20d729c14c9ea062c205b55925305ed797b6
gh-121018https://github.com/python/cpython/issues/121018
: Fix more cases of exiting in argparse when exit_on_…https://github.com/python/cpython/commit/99de20d729c14c9ea062c205b55925305ed797b6
99de20dhttps://github.com/python/cpython/commit/99de20d729c14c9ea062c205b55925305ed797b6
GH-121056https://github.com/python/cpython/pull/121056
GH-121128https://github.com/python/cpython/pull/121128
81a654ahttps://github.com/python/cpython/commit/81a654a3425eaa05a51342509089533c1f623f1b
mrahtzhttps://github.com/mrahtz
Jun 30, 2024 https://github.com/python/cpython/pull/121056#ref-commit-c5dd349
https://github.com/serhiy-storchaka
https://github.com/mrahtz
pythongh-121018https://github.com/python/cpython/issues/121018
: Fix more cases of exiting in argparse when exit_on_e…https://github.com/mrahtz/cpython/commit/c5dd3490ce70c630683b2309be553a2ebb1855f1
c5dd349https://github.com/mrahtz/cpython/commit/c5dd3490ce70c630683b2309be553a2ebb1855f1
pythonGH-121056https://github.com/python/cpython/pull/121056
noahbkimhttps://github.com/noahbkim
Jul 11, 2024 https://github.com/python/cpython/pull/121056#ref-commit-745b950
https://github.com/serhiy-storchaka
https://github.com/noahbkim
pythongh-121018https://github.com/python/cpython/issues/121018
: Fix more cases of exiting in argparse when exit_on_e…https://github.com/hudson-trading/cpython/commit/745b9504cfb75c48bed5ca7050e06abcc532670d
745b950https://github.com/hudson-trading/cpython/commit/745b9504cfb75c48bed5ca7050e06abcc532670d
pythonGH-121056https://github.com/python/cpython/pull/121056
estyxxhttps://github.com/estyxx
Jul 17, 2024 https://github.com/python/cpython/pull/121056#ref-commit-e8a6780
https://github.com/serhiy-storchaka
https://github.com/estyxx
pythongh-121018https://github.com/python/cpython/issues/121018
: Fix more cases of exiting in argparse when exit_on_e…https://github.com/estyxx/cpython/commit/e8a678038b439f9f546ad3e014e65d1677526986
e8a6780https://github.com/estyxx/cpython/commit/e8a678038b439f9f546ad3e014e65d1677526986
pythonGH-121056https://github.com/python/cpython/pull/121056
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F121056
https://github.com/serhiy-storchaka
serhiy-storchaka https://github.com/serhiy-storchaka
Please reload this pagehttps://github.com/python/cpython/pull/121056
https://github.com/serhiy-storchaka
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.