René's URL Explorer Experiment


Title: argparse: subparsers, argument abbreviations and ambiguous option · Issue #58573 · python/cpython · GitHub

Open Graph Title: argparse: subparsers, argument abbreviations and ambiguous option · Issue #58573 · python/cpython

X Title: argparse: subparsers, argument abbreviations and ambiguous option · Issue #58573 · python/cpython

Description: BPO 14365 Nosy @merwok Files argparse_subparsers_ambiguous_bug.py: Bug reproductionargparse_dirty_hack.pysubparser_optionals.diffsubparser_patch.diff Note: these values reflect the state of the issue at the time it was migrated and might...

Open Graph Description: BPO 14365 Nosy @merwok Files argparse_subparsers_ambiguous_bug.py: Bug reproductionargparse_dirty_hack.pysubparser_optionals.diffsubparser_patch.diff Note: these values reflect the state of the iss...

X Description: BPO 14365 Nosy @merwok Files argparse_subparsers_ambiguous_bug.py: Bug reproductionargparse_dirty_hack.pysubparser_optionals.diffsubparser_patch.diff Note: these values reflect the state of the iss...

Opengraph URL: https://github.com/python/cpython/issues/58573

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"argparse: subparsers, argument abbreviations and ambiguous option","articleBody":"BPO | [14365](https://bugs.python.org/issue14365)\n--- | :---\nNosy | @merwok\nFiles | \u003cli>[argparse_subparsers_ambiguous_bug.py](https://bugs.python.org/file24928/argparse_subparsers_ambiguous_bug.py \"Uploaded as text/plain at 2012-03-18.20:27:59 by jakub\"): Bug reproduction\u003c/li>\u003cli>[argparse_dirty_hack.py](https://bugs.python.org/file24945/argparse_dirty_hack.py \"Uploaded as text/plain at 2012-03-19.18:10:15 by jakub\")\u003c/li>\u003cli>[subparser_optionals.diff](https://bugs.python.org/file26466/subparser_optionals.diff \"Uploaded as text/plain at 2012-07-21.20:02:48 by bethard\")\u003c/li>\u003cli>[subparser_patch.diff](https://bugs.python.org/file31901/subparser_patch.diff \"Uploaded as text/plain at 2013-09-29.04:30:27 by paul.j3\")\u003c/li>\n\n\u003csup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup>\n\n\u003cdetails>\u003csummary>Show more details\u003c/summary>\u003cp>\n\nGitHub fields:\n```python\nassignee = None\nclosed_at = None\ncreated_at = \u003cDate 2012-03-18.20:27:59.700>\nlabels = ['type-bug', 'library']\ntitle = 'argparse: subparsers, argument abbreviations and ambiguous option'\nupdated_at = \u003cDate 2014-08-07.22:47:31.748>\nuser = 'https://bugs.python.org/jakub'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2014-08-07.22:47:31.748>\nactor = 'paul.j3'\nassignee = 'none'\nclosed = False\nclosed_date = None\ncloser = None\ncomponents = ['Library (Lib)']\ncreation = \u003cDate 2012-03-18.20:27:59.700>\ncreator = 'jakub'\ndependencies = []\nfiles = ['24928', '24945', '26466', '31901']\nhgrepos = []\nissue_num = 14365\nkeywords = ['patch']\nmessage_count = 14.0\nmessages = ['156272', '156279', '156280', '156290', '156302', '156304', '156306', '156352', '166059', '198456', '198507', '198508', '198563', '225044']\nnosy_count = 5.0\nnosy_names = ['bethard', 'eric.araujo', 'tshepang', 'paul.j3', 'jakub']\npr_nums = []\npriority = 'normal'\nresolution = None\nstage = 'test needed'\nstatus = 'open'\nsuperseder = None\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue14365'\nversions = ['Python 2.7', 'Python 3.2', 'Python 3.3']\n```\n\n\u003c/p>\u003c/details>\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-124631\n* gh-124759\n* gh-124760\n\u003c!-- /gh-linked-prs -->\n","author":{"url":null,"@type":"Person","name":"jakub"},"datePublished":"2012-03-18T20:28:00Z","url":"https://github.com/python/cpython/issues/58573"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:80485964-2ee3-3bbd-7c9e-ca82e457fe54
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE9FA:2EC689:2BD7630:3BD424D:6B005885
html-safe-nonce92a79c33584b1d9868cc7343b0ad39672b28f8375c9435967d20d37f58950900
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUZBOjJFQzY4OToyQkQ3NjMwOjNCRDQyNEQ6NkIwMDU4ODUiLCJ2aXNpdG9yX2lkIjoiNDM4OTY2NjIyNDI1MDgzNzEyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2dd651ae7d0b1b2f7238e47cfdd35b607942548da1be02019d649b28418309fe
hovercard-subject-tagissue:1198879281
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/58573/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a5546c9248487f4a5598441faabce5b07a956a562cb3af3f297c07adf3851d4c/python/cpython/issues/58573
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a5546c9248487f4a5598441faabce5b07a956a562cb3af3f297c07adf3851d4c/python/cpython/issues/58573
og:image:altBPO 14365 Nosy @merwok Files argparse_subparsers_ambiguous_bug.py: Bug reproductionargparse_dirty_hack.pysubparser_optionals.diffsubparser_patch.diff Note: these values reflect the state of the iss...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejakub
hostnamegithub.com
expected-hostnamegithub.com
None29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73
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
releaseeacd927ba6112e3b01ba99c762bd699a4a4f5df7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/58573#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F58573
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%2Fissues%2F58573
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/58573
Reloadhttps://github.com/python/cpython/issues/58573
Reloadhttps://github.com/python/cpython/issues/58573
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/58573
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/58573
argparse: subparsers, argument abbreviations and ambiguous optionhttps://github.com/python/cpython/issues/58573#top
https://github.com/serhiy-storchaka
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Mar 18, 2012https://github.com/python/cpython/issues/58573#issue-1198879281
14365https://bugs.python.org/issue14365
@merwokhttps://github.com/merwok
argparse_subparsers_ambiguous_bug.pyhttps://bugs.python.org/file24928/argparse_subparsers_ambiguous_bug.py
argparse_dirty_hack.pyhttps://bugs.python.org/file24945/argparse_dirty_hack.py
subparser_optionals.diffhttps://bugs.python.org/file26466/subparser_optionals.diff
subparser_patch.diffhttps://bugs.python.org/file31901/subparser_patch.diff
gh-58573: Fix conflicts between abbreviated long options in the parent parser and subparsers in argparse #124631https://github.com/python/cpython/pull/124631
[3.12] gh-58573: Fix conflicts between abbreviated long options in the parent parser and subparsers in argparse (GH-124631) #124759https://github.com/python/cpython/pull/124759
[3.13] gh-58573: Fix conflicts between abbreviated long options in the parent parser and subparsers in argparse (GH-124631) #124760https://github.com/python/cpython/pull/124760
Nexthttps://github.com/python/cpython/issues/58573?timeline_page=1
on Mar 18, 2012https://github.com/python/cpython/issues/58573#issuecomment-1093574352
http://docs.python.org/library/argparse.html#argument-abbreviationshttp://docs.python.org/library/argparse.html#argument-abbreviations
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Mar 18, 2012https://github.com/python/cpython/issues/58573#event-6403030590
on Mar 18, 2012https://github.com/python/cpython/issues/58573#issuecomment-1093574353
on Mar 18, 2012https://github.com/python/cpython/issues/58573#issuecomment-1093574354
bpo-12713https://bugs.python.org/issue?@action=redirect&bpo=12713
on Mar 18, 2012https://github.com/python/cpython/issues/58573#issuecomment-1093574355
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Mar 18, 2012https://github.com/python/cpython/issues/58573#event-6403030592
on Mar 19, 2012https://github.com/python/cpython/issues/58573#issuecomment-1093574356
bpo-12713https://bugs.python.org/issue?@action=redirect&bpo=12713
on Mar 19, 2012https://github.com/python/cpython/issues/58573#issuecomment-1093574357
on Mar 19, 2012https://github.com/python/cpython/issues/58573#event-6403030593
on Mar 19, 2012https://github.com/python/cpython/issues/58573#issuecomment-1093574358
on Mar 19, 2012https://github.com/python/cpython/issues/58573#issuecomment-1093574360
on Jul 21, 2012https://github.com/python/cpython/issues/58573#issuecomment-1093574361
on Sep 26, 2013https://github.com/python/cpython/issues/58573#issuecomment-1093574362
on Sep 28, 2013https://github.com/python/cpython/issues/58573#issuecomment-1093574363
serhiy-storchakahttps://github.com/serhiy-storchaka
on Sep 29, 2024https://github.com/python/cpython/issues/58573#event-14444760714
[3.12] gh-58573: Fix conflicts between abbreviated long options in th…https://github.com/python/cpython/commit/cbea45ad74779c0ffe760bab7f9d5ce149302495
gh-58573https://github.com/python/cpython/issues/58573
cbea45ahttps://github.com/python/cpython/commit/cbea45ad74779c0ffe760bab7f9d5ce149302495
serhiy-storchakahttps://github.com/serhiy-storchaka
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 29, 2024https://github.com/python/cpython/issues/58573#event-14444767315
github-project-automationhttps://github.com/apps/github-project-automation
Argparse issueshttps://github.com/orgs/python/projects/5
on Sep 29, 2024https://github.com/python/cpython/issues/58573
AdamWillhttps://github.com/AdamWill
on Oct 2, 2024https://github.com/python/cpython/issues/58573#event-14492302627
options: adjust to behavior change in upstream _parse_optionalhttps://github.com/AdamWill/pykickstart/commit/8c5afb939ede78ed375d0720abcbc1798b17c320
8c5afb9https://github.com/AdamWill/pykickstart/commit/8c5afb939ede78ed375d0720abcbc1798b17c320
options: adjust to behavior change in upstream _parse_optionalhttps://github.com/AdamWill/pykickstart/commit/b64e926e476ad3586187ec62624057a1dd2c6d55
b64e926https://github.com/AdamWill/pykickstart/commit/b64e926e476ad3586187ec62624057a1dd2c6d55
options: adjust to behavior change in upstream _parse_optionalhttps://github.com/AdamWill/pykickstart/commit/7b9ddb1bcde8d2cf4c9abf03d8e03bf0be9b503e
7b9ddb1https://github.com/AdamWill/pykickstart/commit/7b9ddb1bcde8d2cf4c9abf03d8e03bf0be9b503e
bclhttps://github.com/bcl
on Oct 2, 2024https://github.com/python/cpython/issues/58573#event-14494837502
options: adjust to behavior change in upstream _parse_optionalhttps://github.com/pykickstart/pykickstart/commit/f753d4d6ad1f4846d14735beb3d1b157b9914b51
f753d4dhttps://github.com/pykickstart/pykickstart/commit/f753d4d6ad1f4846d14735beb3d1b157b9914b51
options: adjust to behavior change in upstream _parse_optionalhttps://github.com/bcl/pykickstart/commit/06eafb7266d40578e2cb730dd282d4b100ae9b0f
06eafb7https://github.com/bcl/pykickstart/commit/06eafb7266d40578e2cb730dd282d4b100ae9b0f
serhiy-storchakahttps://github.com/serhiy-storchaka
on Oct 7, 2024https://github.com/python/cpython/issues/58573#event-14547849064
[3.13] gh-58573: Fix conflicts between abbreviated long options in th…https://github.com/python/cpython/commit/6925e5b5c778d0c7deab58c62545b69b4a3d3844
gh-58573https://github.com/python/cpython/issues/58573
6925e5bhttps://github.com/python/cpython/commit/6925e5b5c778d0c7deab58c62545b69b4a3d3844
pythongh-125254: Fix error report about ambiguous option in argparsehttps://github.com/serhiy-storchaka/cpython/commit/d4009a23ea75c82a09a6f9f50511c610344d433d
pythongh-125254https://github.com/python/cpython/issues/125254
d4009a2https://github.com/serhiy-storchaka/cpython/commit/d4009a23ea75c82a09a6f9f50511c610344d433d
gh-125254: Fix error report about ambiguous option in argparse (GH-12…https://github.com/python/cpython/commit/63cf4e914f879ee28a75c02e867baa7c6047ea2b
gh-125254https://github.com/python/cpython/issues/125254
GH-12…https://github.com/python/cpython/pull/125273
63cf4e9https://github.com/python/cpython/commit/63cf4e914f879ee28a75c02e867baa7c6047ea2b
miss-islingtonhttps://github.com/miss-islington
on Oct 12, 2024https://github.com/python/cpython/issues/58573#event-14616820940
pythongh-125254: Fix error report about ambiguous option in argparse (p…https://github.com/miss-islington/cpython/commit/5db7fd9ca5a2057e7be2be030421cd1231c865c8
pythongh-125254https://github.com/python/cpython/issues/125254
p…https://github.com/python/cpython/pull/125273
5db7fd9https://github.com/miss-islington/cpython/commit/5db7fd9ca5a2057e7be2be030421cd1231c865c8
pythongh-125254: Fix error report about ambiguous option in argparse (p…https://github.com/miss-islington/cpython/commit/8998491b95198ec0e53c6215de8b14c982d9f71f
pythongh-125254https://github.com/python/cpython/issues/125254
p…https://github.com/python/cpython/pull/125273
8998491https://github.com/miss-islington/cpython/commit/8998491b95198ec0e53c6215de8b14c982d9f71f
serhiy-storchakahttps://github.com/serhiy-storchaka
on Oct 12, 2024https://github.com/python/cpython/issues/58573#event-14616909495
[3.12] gh-125254: Fix error report about ambiguous option in argparse (…https://github.com/python/cpython/commit/aa0cdeb93cedef1e28bc3e4dc6cd4c5c3b1425d6
gh-125254https://github.com/python/cpython/issues/125254
…https://github.com/python/cpython/pull/125273
aa0cdebhttps://github.com/python/cpython/commit/aa0cdeb93cedef1e28bc3e4dc6cd4c5c3b1425d6
[3.13] gh-125254: Fix error report about ambiguous option in argparse (…https://github.com/python/cpython/commit/33c41360c8d0a2019feddb523295ff3d7d47ee3c
gh-125254https://github.com/python/cpython/issues/125254
…https://github.com/python/cpython/pull/125273
33c4136https://github.com/python/cpython/commit/33c41360c8d0a2019feddb523295ff3d7d47ee3c
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/58573
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/58573
serhiy-storchakahttps://github.com/serhiy-storchaka
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
3.14bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.14%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
Argparse issueshttps://github.com/orgs/python/projects/5
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.