René's URL Explorer Experiment


Title: Raise ValueError in attach_subcommand() when the subcommand already exists. by kmvanbrunt · Pull Request #1645 · python-cmd2/cmd2 · GitHub

Open Graph Title: Raise ValueError in attach_subcommand() when the subcommand already exists. by kmvanbrunt · Pull Request #1645 · python-cmd2/cmd2

Description: cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python - Raise ValueError in attach_subcommand() when the subcommand already exists. by kmvanbrunt · Pull Request #1645 · python-cmd2/cmd2

Opengraph URL: https://github.com/python-cmd2/cmd2/pull/1645

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:39e93765-62da-b3dc-1047-7e1c968d8359
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCCBA:242272:4118A4:5821A3:6A4DA0BB
html-safe-nonce36b5c8e5e2785bbd39671e2054cee6fa0b474a8fe3da20c9d80fe375872c01ae
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0JBOjI0MjI3Mjo0MTE4QTQ6NTgyMUEzOjZBNERBMEJCIiwidmlzaXRvcl9pZCI6IjU0Mjk1MzAyNjUzMzEyNzgwMTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac72a9b09e6c49889ab021bbf91c18930b0610a7a7bd827c389bfc53b6b96fd4a4
hovercard-subject-tagpull_request:3568999534
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-cmd2/cmd2/pull/1645/files
og:imagehttps://avatars.githubusercontent.com/u/28899027?s=400&v=4
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python-cmd2/cmd2 git https://github.com/python-cmd2/cmd2.git
octolytics-dimension-user_id17161025
octolytics-dimension-user_loginpython-cmd2
octolytics-dimension-repository_id51442999
octolytics-dimension-repository_nwopython-cmd2/cmd2
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id51442999
octolytics-dimension-repository_network_root_nwopython-cmd2/cmd2
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7f13faa65cccc9b729d674da83335d5dcfdfd193
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-cmd2/cmd2/pull/1645/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-cmd2%2Fcmd2%2Fpull%2F1645%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
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-cmd2%2Fcmd2%2Fpull%2F1645%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python-cmd2%2Fcmd2
Reloadhttps://github.com/python-cmd2/cmd2/pull/1645/files
Reloadhttps://github.com/python-cmd2/cmd2/pull/1645/files
Reloadhttps://github.com/python-cmd2/cmd2/pull/1645/files
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1645/files
python-cmd2 https://github.com/python-cmd2
cmd2https://github.com/python-cmd2/cmd2
Notifications https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2
Fork 132 https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2
Star 689 https://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2
Code https://github.com/python-cmd2/cmd2
Issues 0 https://github.com/python-cmd2/cmd2/issues
Pull requests 0 https://github.com/python-cmd2/cmd2/pulls
Discussions https://github.com/python-cmd2/cmd2/discussions
Actions https://github.com/python-cmd2/cmd2/actions
Projects https://github.com/python-cmd2/cmd2/projects
Security and quality 0 https://github.com/python-cmd2/cmd2/security
Insights https://github.com/python-cmd2/cmd2/pulse
Code https://github.com/python-cmd2/cmd2
Issues https://github.com/python-cmd2/cmd2/issues
Pull requests https://github.com/python-cmd2/cmd2/pulls
Discussions https://github.com/python-cmd2/cmd2/discussions
Actions https://github.com/python-cmd2/cmd2/actions
Projects https://github.com/python-cmd2/cmd2/projects
Security and quality https://github.com/python-cmd2/cmd2/security
Insights https://github.com/python-cmd2/cmd2/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-cmd2%2Fcmd2%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-cmd2%2Fcmd2%2Fissues%2Fnew%2Fchoose
kmvanbrunthttps://github.com/kmvanbrunt
mainhttps://github.com/python-cmd2/cmd2/tree/main
handle_duplicate_subcommandhttps://github.com/python-cmd2/cmd2/tree/handle_duplicate_subcommand
Conversation 3 https://github.com/python-cmd2/cmd2/pull/1645
Commits 3 https://github.com/python-cmd2/cmd2/pull/1645/commits
Checks 32 https://github.com/python-cmd2/cmd2/pull/1645/checks
Files changed 5 https://github.com/python-cmd2/cmd2/pull/1645/files
Raise ValueError in attach_subcommand() when the subcommand already exists. https://github.com/python-cmd2/cmd2/pull/1645/files#top
Show all changes 3 commits https://github.com/python-cmd2/cmd2/pull/1645/files
fd655f4 Raise ValueError in attach_subcommand() when the subcommand already e… kmvanbrunt Apr 22, 2026 https://github.com/python-cmd2/cmd2/pull/1645/commits/fd655f4c3fdb07997364b7cf33a4f7b046448891
1dc7042 Fixed inconsistent behavior between Python versions by always checkin… kmvanbrunt Apr 22, 2026 https://github.com/python-cmd2/cmd2/pull/1645/commits/1dc704241c9a2d15fb4f67f71e89d89f572ba808
abdd76c Updated comment. kmvanbrunt Apr 22, 2026 https://github.com/python-cmd2/cmd2/pull/1645/commits/abdd76c4bad0ca2c88d97f09dc84626452e74095
Clear filters https://github.com/python-cmd2/cmd2/pull/1645/files
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1645/files
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1645/files
argparse_utils.py https://github.com/python-cmd2/cmd2/pull/1645/files#diff-0322d2345a2dc7bd5c3d163c24977d8b50ae9d606bac64d05ae2317333778468
cmd2.py https://github.com/python-cmd2/cmd2/pull/1645/files#diff-325e1c8c92627fe81d6ef9f286b107ede43813bfdb4160425ca4f69c9e7ce08b
decorators.py https://github.com/python-cmd2/cmd2/pull/1645/files#diff-92eb863357db6b756c082023aab5954a683e8c44028f2bd39706b482d63e939c
test_argparse_utils.py https://github.com/python-cmd2/cmd2/pull/1645/files#diff-2a825800c0ab080baa00a4a0fc348978c1bb762d6a3708872c4e141cb578bf7f
test_cmd2.py https://github.com/python-cmd2/cmd2/pull/1645/files#diff-619ddd8c328e715fff231ef137a18683cb81c372215cdd1085cdd3976f9b533c
https://github.com/python-cmd2/cmd2/blob/main/.github/CODEOWNERS#L30
cmd2/argparse_utils.pyhttps://github.com/python-cmd2/cmd2/pull/1645/files#diff-0322d2345a2dc7bd5c3d163c24977d8b50ae9d606bac64d05ae2317333778468
View file https://github.com/python-cmd2/cmd2/blob/abdd76c4bad0ca2c88d97f09dc84626452e74095/cmd2/argparse_utils.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-cmd2/cmd2/pull/1645/{{ revealButtonHref }}
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-0322d2345a2dc7bd5c3d163c24977d8b50ae9d606bac64d05ae2317333778468
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-0322d2345a2dc7bd5c3d163c24977d8b50ae9d606bac64d05ae2317333778468
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-0322d2345a2dc7bd5c3d163c24977d8b50ae9d606bac64d05ae2317333778468
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-0322d2345a2dc7bd5c3d163c24977d8b50ae9d606bac64d05ae2317333778468
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-0322d2345a2dc7bd5c3d163c24977d8b50ae9d606bac64d05ae2317333778468
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-0322d2345a2dc7bd5c3d163c24977d8b50ae9d606bac64d05ae2317333778468
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-0322d2345a2dc7bd5c3d163c24977d8b50ae9d606bac64d05ae2317333778468
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-0322d2345a2dc7bd5c3d163c24977d8b50ae9d606bac64d05ae2317333778468
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-0322d2345a2dc7bd5c3d163c24977d8b50ae9d606bac64d05ae2317333778468
https://github.com/python-cmd2/cmd2/blob/main/.github/CODEOWNERS#L32
cmd2/cmd2.pyhttps://github.com/python-cmd2/cmd2/pull/1645/files#diff-325e1c8c92627fe81d6ef9f286b107ede43813bfdb4160425ca4f69c9e7ce08b
View file https://github.com/python-cmd2/cmd2/blob/abdd76c4bad0ca2c88d97f09dc84626452e74095/cmd2/cmd2.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-cmd2/cmd2/pull/1645/{{ revealButtonHref }}
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-325e1c8c92627fe81d6ef9f286b107ede43813bfdb4160425ca4f69c9e7ce08b
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-325e1c8c92627fe81d6ef9f286b107ede43813bfdb4160425ca4f69c9e7ce08b
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-325e1c8c92627fe81d6ef9f286b107ede43813bfdb4160425ca4f69c9e7ce08b
https://github.com/python-cmd2/cmd2/blob/main/.github/CODEOWNERS#L37
cmd2/decorators.pyhttps://github.com/python-cmd2/cmd2/pull/1645/files#diff-92eb863357db6b756c082023aab5954a683e8c44028f2bd39706b482d63e939c
View file https://github.com/python-cmd2/cmd2/blob/abdd76c4bad0ca2c88d97f09dc84626452e74095/cmd2/decorators.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-cmd2/cmd2/pull/1645/{{ revealButtonHref }}
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-92eb863357db6b756c082023aab5954a683e8c44028f2bd39706b482d63e939c
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-92eb863357db6b756c082023aab5954a683e8c44028f2bd39706b482d63e939c
https://github.com/python-cmd2/cmd2/blob/main/.github/CODEOWNERS#L58
tests/test_argparse_utils.pyhttps://github.com/python-cmd2/cmd2/pull/1645/files#diff-2a825800c0ab080baa00a4a0fc348978c1bb762d6a3708872c4e141cb578bf7f
View file https://github.com/python-cmd2/cmd2/blob/abdd76c4bad0ca2c88d97f09dc84626452e74095/tests/test_argparse_utils.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-cmd2/cmd2/pull/1645/{{ revealButtonHref }}
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-2a825800c0ab080baa00a4a0fc348978c1bb762d6a3708872c4e141cb578bf7f
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1645/files
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-2a825800c0ab080baa00a4a0fc348978c1bb762d6a3708872c4e141cb578bf7f
https://github.com/python-cmd2/cmd2/blob/main/.github/CODEOWNERS#L58
tests/test_cmd2.pyhttps://github.com/python-cmd2/cmd2/pull/1645/files#diff-619ddd8c328e715fff231ef137a18683cb81c372215cdd1085cdd3976f9b533c
View file https://github.com/python-cmd2/cmd2/blob/abdd76c4bad0ca2c88d97f09dc84626452e74095/tests/test_cmd2.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-cmd2/cmd2/pull/1645/{{ revealButtonHref }}
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-619ddd8c328e715fff231ef137a18683cb81c372215cdd1085cdd3976f9b533c
https://github.com/python-cmd2/cmd2/pull/1645/files#diff-619ddd8c328e715fff231ef137a18683cb81c372215cdd1085cdd3976f9b533c
Please reload this pagehttps://github.com/python-cmd2/cmd2/pull/1645/files
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.