René's URL Explorer Experiment


Title: gh-58573: Fix conflicts between abbreviated long options in the parent parser and subparsers in argparse by serhiy-storchaka · Pull Request #124631 · python/cpython · GitHub

Open Graph Title: gh-58573: Fix conflicts between abbreviated long options in the parent parser and subparsers in argparse by serhiy-storchaka · Pull Request #124631 · python/cpython

X Title: gh-58573: Fix conflicts between abbreviated long options in the parent parser and subparsers in argparse by serhiy-storchaka · Pull Request #124631 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Check for ambiguous options if the option is consumed, not when it is parsed. Issue: argparse: subparsers, argument abbreviations and ambiguous option #58573

X Description: Check for ambiguous options if the option is consumed, not when it is parsed. Issue: argparse: subparsers, argument abbreviations and ambiguous option #58573

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:9dc5f2fe-71e3-15b9-49fa-bd275c930da1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA48E:59847:E00134:12D1A67:6B00587F
html-safe-nonce29f7e9091ae8d3b2f6a1977eb17700f2dfcea2378b22a0c4c54e5a265b211ce7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDhFOjU5ODQ3OkUwMDEzNDoxMkQxQTY3OjZCMDA1ODdGIiwidmlzaXRvcl9pZCI6IjM0MTY0MjY2ODIyMjE4NzczNzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4ea5174306560e215bfa18f00b816bad68233b7628b40508342230168a6f5787
hovercard-subject-tagpull_request:2094455058
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/124631/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/fa9ef5295442072c99c6d21fee9dc1ad4a3c206b58f452bc0137d7a088e2d5b8/python/cpython/pull/124631
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fa9ef5295442072c99c6d21fee9dc1ad4a3c206b58f452bc0137d7a088e2d5b8/python/cpython/pull/124631
og:image:altCheck for ambiguous options if the option is consumed, not when it is parsed. Issue: argparse: subparsers, argument abbreviations and ambiguous option #58573
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
None29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73
turbo-cache-controlno-cache
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
releaseeacd927ba6112e3b01ba99c762bd699a4a4f5df7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/124631#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F124631
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F124631
Sign uphttps://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/124631
Reloadhttps://github.com/python/cpython/pull/124631
Reloadhttps://github.com/python/cpython/pull/124631
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:argparse-abbrev-subparserhttps://github.com/serhiy-storchaka/cpython/tree/argparse-abbrev-subparser
Conversationhttps://github.com/python/cpython/pull/124631
Commits2 (2)https://github.com/python/cpython/pull/124631/commits
Checkshttps://github.com/python/cpython/pull/124631/checks
Files changedhttps://github.com/python/cpython/pull/124631/files
gh-58573: Fix conflicts between abbreviated long options in the parent parser and subparsers in argparsehttps://github.com/python/cpython/pull/124631#top
serhiy-storchakahttps://github.com/serhiy-storchaka
python:mainhttps://github.com/python/cpython/tree/main
serhiy-storchaka:argparse-abbrev-subparserhttps://github.com/serhiy-storchaka/cpython/tree/argparse-abbrev-subparser
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 26, 2024https://github.com/python/cpython/pull/124631#issue-2551374104
Please reload this pagehttps://github.com/python/cpython/pull/124631
argparse: subparsers, argument abbreviations and ambiguous option #58573https://github.com/python/cpython/issues/58573
Please reload this pagehttps://github.com/python/cpython/pull/124631
https://github.com/serhiy-storchaka
pythongh-58573https://github.com/python/cpython/issues/58573
: Fix conflicts between abbreviated long options in the…https://github.com/python/cpython/pull/124631/commits/333c23e467f2d73f25c445c0dd03ed0076798377
333c23ehttps://github.com/python/cpython/pull/124631/commits/333c23e467f2d73f25c445c0dd03ed0076798377
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
Sep 26, 2024https://github.com/python/cpython/pull/124631#event-14421553709
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
Sep 26, 2024https://github.com/python/cpython/pull/124631#event-14421554303
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 26, 2024 https://github.com/python/cpython/pull/124631#ref-issue-1198879281
argparse: subparsers, argument abbreviations and ambiguous option #58573 https://github.com/python/cpython/issues/58573
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 26, 2024 https://github.com/python/cpython/pull/124631#ref-issue-1916377686
argparse: ambiguous option reported with primary parser #109990 https://github.com/python/cpython/issues/109990
https://github.com/serhiy-storchaka
Merge branch 'main' into argparse-abbrev-subparserhttps://github.com/python/cpython/pull/124631/commits/1c0a4dee7416665a2a483312dfa88766aebe6291
1c0a4dehttps://github.com/python/cpython/pull/124631/commits/1c0a4dee7416665a2a483312dfa88766aebe6291
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
3f27153https://github.com/python/cpython/commit/3f27153e077d7e9448e2f081275931968b40cc74
Sep 29, 2024https://github.com/python/cpython/pull/124631#event-14444709612
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
Sep 29, 2024https://github.com/python/cpython/pull/124631#event-14444709709
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Sep 29, 2024https://github.com/python/cpython/pull/124631#issuecomment-2381271933
@serhiy-storchakahttps://github.com/serhiy-storchaka
Please reload this pagehttps://github.com/python/cpython/pull/124631
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
September 29, 2024 09:01https://github.com/python/cpython/pull/124631#event-14444709740
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Sep 29, 2024https://github.com/python/cpython/pull/124631#issuecomment-2381271952
@serhiy-storchakahttps://github.com/serhiy-storchaka
cherry_pickerhttps://pypi.org/project/cherry-picker/
Please reload this pagehttps://github.com/python/cpython/pull/124631
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 29, 2024https://github.com/python/cpython/pull/124631#event-14444709817
miss-islingtonhttps://github.com/miss-islington
Sep 29, 2024 https://github.com/python/cpython/pull/124631#ref-commit-27fe178
https://github.com/serhiy-storchaka
https://github.com/miss-islington
pythongh-58573https://github.com/python/cpython/issues/58573
: Fix conflicts between abbreviated long options in the…https://github.com/miss-islington/cpython/commit/27fe178701c3584e0824c95ecde6301350c5e854
27fe178https://github.com/miss-islington/cpython/commit/27fe178701c3584e0824c95ecde6301350c5e854
pythonGH-124631https://github.com/python/cpython/pull/124631
3f27153https://github.com/miss-islington/cpython/commit/3f27153e077d7e9448e2f081275931968b40cc74
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 29, 2024https://github.com/python/cpython/pull/124631#issuecomment-2381272164
GH-124759https://github.com/python/cpython/pull/124759
3.12 branchhttps://github.com/python/cpython/tree/3.12
Please reload this pagehttps://github.com/python/cpython/pull/124631
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
Sep 29, 2024https://github.com/python/cpython/pull/124631#event-14444710729
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 29, 2024 https://github.com/python/cpython/pull/124631#ref-pullrequest-2522069361
gh-109990: Fixed argparser parsing optional arguments with same prefix #124000 https://github.com/python/cpython/pull/124000
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 29, 2024 https://github.com/python/cpython/pull/124631#ref-commit-87e95dc
https://github.com/serhiy-storchaka
[3.13]https://github.com/serhiy-storchaka/cpython/commit/87e95dc6bbafec31fcd916d9860faab169fe29f8
pythongh-58573https://github.com/python/cpython/issues/58573
: Fix conflicts between abbreviated long options…https://github.com/serhiy-storchaka/cpython/commit/87e95dc6bbafec31fcd916d9860faab169fe29f8
87e95dchttps://github.com/serhiy-storchaka/cpython/commit/87e95dc6bbafec31fcd916d9860faab169fe29f8
pythonGH-124631https://github.com/python/cpython/pull/124631
3f27153https://github.com/serhiy-storchaka/cpython/commit/3f27153e077d7e9448e2f081275931968b40cc74
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Sep 29, 2024https://github.com/python/cpython/pull/124631#issuecomment-2381276684
GH-124760https://github.com/python/cpython/pull/124760
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/124631
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
Sep 29, 2024https://github.com/python/cpython/pull/124631#event-14444748753
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 29, 2024 https://github.com/python/cpython/pull/124631#ref-commit-cbea45a
https://github.com/miss-islington
https://github.com/serhiy-storchaka
[3.12]https://github.com/python/cpython/commit/cbea45ad74779c0ffe760bab7f9d5ce149302495
gh-58573https://github.com/python/cpython/issues/58573
: Fix conflicts between abbreviated long options in th…https://github.com/python/cpython/commit/cbea45ad74779c0ffe760bab7f9d5ce149302495
cbea45ahttps://github.com/python/cpython/commit/cbea45ad74779c0ffe760bab7f9d5ce149302495
GH-124631https://github.com/python/cpython/pull/124631
GH-124759https://github.com/python/cpython/pull/124759
3f27153https://github.com/python/cpython/commit/3f27153e077d7e9448e2f081275931968b40cc74
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Sep 29, 2024https://github.com/python/cpython/pull/124631#event-14444768406
AdamWillhttps://github.com/AdamWill
Oct 2, 2024 https://github.com/python/cpython/pull/124631#ref-commit-8c5afb9
https://github.com/AdamWill
options: adjust to behavior change in upstream _parse_optionalhttps://github.com/AdamWill/pykickstart/commit/8c5afb939ede78ed375d0720abcbc1798b17c320
8c5afb9https://github.com/AdamWill/pykickstart/commit/8c5afb939ede78ed375d0720abcbc1798b17c320
python/cpython#124631https://github.com/python/cpython/pull/124631
python/cpython#58573https://github.com/python/cpython/issues/58573
https://github.com/AdamWill
AdamWillhttps://github.com/AdamWill
Oct 2, 2024 https://github.com/python/cpython/pull/124631#ref-pullrequest-2562210299
options: adjust to behavior change in upstream _parse_optional pykickstart/pykickstart#508 https://github.com/pykickstart/pykickstart/pull/508
AdamWillhttps://github.com/AdamWill
Oct 2, 2024 https://github.com/python/cpython/pull/124631#ref-commit-b64e926
https://github.com/AdamWill
options: adjust to behavior change in upstream _parse_optionalhttps://github.com/AdamWill/pykickstart/commit/b64e926e476ad3586187ec62624057a1dd2c6d55
b64e926https://github.com/AdamWill/pykickstart/commit/b64e926e476ad3586187ec62624057a1dd2c6d55
python/cpython#124631https://github.com/python/cpython/pull/124631
python/cpython#58573https://github.com/python/cpython/issues/58573
AdamWillhttps://github.com/AdamWill
Oct 2, 2024 https://github.com/python/cpython/pull/124631#ref-commit-7b9ddb1
https://github.com/AdamWill
options: adjust to behavior change in upstream _parse_optionalhttps://github.com/AdamWill/pykickstart/commit/7b9ddb1bcde8d2cf4c9abf03d8e03bf0be9b503e
7b9ddb1https://github.com/AdamWill/pykickstart/commit/7b9ddb1bcde8d2cf4c9abf03d8e03bf0be9b503e
python/cpython#124631https://github.com/python/cpython/pull/124631
python/cpython#58573https://github.com/python/cpython/issues/58573
bclhttps://github.com/bcl
Oct 2, 2024 https://github.com/python/cpython/pull/124631#ref-commit-f753d4d
https://github.com/AdamWill
https://github.com/bcl
options: adjust to behavior change in upstream _parse_optionalhttps://github.com/pykickstart/pykickstart/commit/f753d4d6ad1f4846d14735beb3d1b157b9914b51
f753d4dhttps://github.com/pykickstart/pykickstart/commit/f753d4d6ad1f4846d14735beb3d1b157b9914b51
python/cpython#124631https://github.com/python/cpython/pull/124631
python/cpython#58573https://github.com/python/cpython/issues/58573
bclhttps://github.com/bcl
Oct 4, 2024 https://github.com/python/cpython/pull/124631#ref-commit-06eafb7
https://github.com/AdamWill
https://github.com/brlane-rht
options: adjust to behavior change in upstream _parse_optionalhttps://github.com/bcl/pykickstart/commit/06eafb7266d40578e2cb730dd282d4b100ae9b0f
06eafb7https://github.com/bcl/pykickstart/commit/06eafb7266d40578e2cb730dd282d4b100ae9b0f
python/cpython#124631https://github.com/python/cpython/pull/124631
python/cpython#58573https://github.com/python/cpython/issues/58573
Fix issue #590: Behavior change in argparse._parse_optional breaks the parse of optional arguments mauvilsa/jsonargparse#591 https://github.com/mauvilsa/jsonargparse/pull/591
Fix issue #507 kislyuk/argcomplete#508 https://github.com/kislyuk/argcomplete/pull/508
serhiy-storchakahttps://github.com/serhiy-storchaka
Oct 7, 2024 https://github.com/python/cpython/pull/124631#ref-commit-6925e5b
https://github.com/serhiy-storchaka
[3.13]https://github.com/python/cpython/commit/6925e5b5c778d0c7deab58c62545b69b4a3d3844
gh-58573https://github.com/python/cpython/issues/58573
: Fix conflicts between abbreviated long options in th…https://github.com/python/cpython/commit/6925e5b5c778d0c7deab58c62545b69b4a3d3844
6925e5bhttps://github.com/python/cpython/commit/6925e5b5c778d0c7deab58c62545b69b4a3d3844
GH-124631https://github.com/python/cpython/pull/124631
GH-124760https://github.com/python/cpython/pull/124760
3f27153https://github.com/python/cpython/commit/3f27153e077d7e9448e2f081275931968b40cc74
cli command basilisp test does not work with Python 3.12.7 basilisp-lang/basilisp#1119 https://github.com/basilisp-lang/basilisp/issues/1119
argparse nargs=-1 fails on python 3.12.7 #126708 https://github.com/python/cpython/issues/126708
mjcarrollhttps://github.com/mjcarroll
Aug 23, 2026 https://github.com/python/cpython/pull/124631#ref-commit-9ae5106
Require colcon-core 0.18.2 for Python 3.14 compatibilityhttps://github.com/mjcarroll/ros2/commit/9ae5106ff18e26b5813d7c05fb7eb8671984458c
9ae5106https://github.com/mjcarroll/ros2/commit/9ae5106ff18e26b5813d7c05fb7eb8671984458c
python/cpython#124631https://github.com/python/cpython/pull/124631
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
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%2F124631
Please reload this pagehttps://github.com/python/cpython/pull/124631
Please reload this pagehttps://github.com/python/cpython/pull/124631
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.