René's URL Explorer Experiment


Title: Fix: All `python -m semver` commands fail with 'error: invalid choice:' by zanecodes · Pull Request #393 · python-semver/python-semver · GitHub

Open Graph Title: Fix: All `python -m semver` commands fail with 'error: invalid choice:' by zanecodes · Pull Request #393 · python-semver/python-semver

X Title: Fix: All `python -m semver` commands fail with 'error: invalid choice:' by zanecodes · Pull Request #393 · python-semver/python-semver

Description: This was caused by __main__.py passing sys.argv to cli.main(), which includes the path of the script in sys.argv[0]. argparse.ArgumentParser.parse_args() parses this as the subcommand name, causing...

Open Graph Description: This was caused by __main__.py passing sys.argv to cli.main(), which includes the path of the script in sys.argv[0]. argparse.ArgumentParser.parse_args() parses this as the subcommand name, causing...

X Description: This was caused by __main__.py passing sys.argv to cli.main(), which includes the path of the script in sys.argv[0]. argparse.ArgumentParser.parse_args() parses this as the subcommand name, causing...

Opengraph URL: https://github.com/python-semver/python-semver/pull/393

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:2d395fab-3125-1db1-14fa-08e4cb904e7c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE4DA:337755:1B941B3:24D40CF:697049A2
html-safe-nonce354b57f74a789eb9cf3381c4900b7c168fdbc0b7a288c9642733d22c990f66f2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNERBOjMzNzc1NToxQjk0MUIzOjI0RDQwQ0Y6Njk3MDQ5QTIiLCJ2aXNpdG9yX2lkIjoiMjM5MTkxNjMyMDI1ODAxNzY5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd30448ba083634000512d02f80713b58353bf9f6e2783a8b1353dc2133c3cb62
hovercard-subject-tagpull_request:1234099478
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-semver/python-semver/393/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ee6e0a918374edeb6a1de9ff702f54c48ee9cf9a12c2de45dbea54da52dffd62/python-semver/python-semver/pull/393
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ee6e0a918374edeb6a1de9ff702f54c48ee9cf9a12c2de45dbea54da52dffd62/python-semver/python-semver/pull/393
og:image:altThis was caused by __main__.py passing sys.argv to cli.main(), which includes the path of the script in sys.argv[0]. argparse.ArgumentParser.parse_args() parses this as the subcommand name, causing...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezanecodes
hostnamegithub.com
expected-hostnamegithub.com
None9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2
turbo-cache-controlno-preview
go-importgithub.com/python-semver/python-semver git https://github.com/python-semver/python-semver.git
octolytics-dimension-user_id57228994
octolytics-dimension-user_loginpython-semver
octolytics-dimension-repository_id3375726
octolytics-dimension-repository_nwopython-semver/python-semver
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3375726
octolytics-dimension-repository_network_root_nwopython-semver/python-semver
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
releasef643964067a552f02067066d6a910b2f90a5721f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-semver/python-semver/pull/393#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-semver%2Fpython-semver%2Fpull%2F393
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-semver%2Fpython-semver%2Fpull%2F393
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-semver%2Fpython-semver
Reloadhttps://github.com/python-semver/python-semver/pull/393
Reloadhttps://github.com/python-semver/python-semver/pull/393
Reloadhttps://github.com/python-semver/python-semver/pull/393
python-semver https://github.com/python-semver
python-semverhttps://github.com/python-semver/python-semver
Notifications https://github.com/login?return_to=%2Fpython-semver%2Fpython-semver
Fork 96 https://github.com/login?return_to=%2Fpython-semver%2Fpython-semver
Star 516 https://github.com/login?return_to=%2Fpython-semver%2Fpython-semver
Code https://github.com/python-semver/python-semver
Issues 12 https://github.com/python-semver/python-semver/issues
Pull requests 3 https://github.com/python-semver/python-semver/pulls
Discussions https://github.com/python-semver/python-semver/discussions
Actions https://github.com/python-semver/python-semver/actions
Projects 0 https://github.com/python-semver/python-semver/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python-semver/python-semver/security
Please reload this pagehttps://github.com/python-semver/python-semver/pull/393
Insights https://github.com/python-semver/python-semver/pulse
Code https://github.com/python-semver/python-semver
Issues https://github.com/python-semver/python-semver/issues
Pull requests https://github.com/python-semver/python-semver/pulls
Discussions https://github.com/python-semver/python-semver/discussions
Actions https://github.com/python-semver/python-semver/actions
Projects https://github.com/python-semver/python-semver/projects
Security https://github.com/python-semver/python-semver/security
Insights https://github.com/python-semver/python-semver/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-semver%2Fpython-semver%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-semver%2Fpython-semver%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python-semver/python-semver/pull/393#issue-comment-box
tomschrhttps://github.com/tomschr
python-semver:masterhttps://github.com/python-semver/python-semver/tree/master
zanecodes:fix-clihttps://github.com/zanecodes/python-semver/tree/fix-cli
Fix: All python -m semver commands fail with 'error: invalid choice:' https://github.com/python-semver/python-semver/pull/393#top
tomschrhttps://github.com/tomschr
python-semver:masterhttps://github.com/python-semver/python-semver/tree/master
zanecodes:fix-clihttps://github.com/zanecodes/python-semver/tree/fix-cli
Conversation 2 https://github.com/python-semver/python-semver/pull/393
Commits 1 https://github.com/python-semver/python-semver/pull/393/commits
Checks 0 https://github.com/python-semver/python-semver/pull/393/checks
Files changed https://github.com/python-semver/python-semver/pull/393/files
Please reload this pagehttps://github.com/python-semver/python-semver/pull/393
https://github.co/hiddenchars
https://github.com/python-semver/python-semver/pull/{{ revealButtonHref }}
https://github.com/zanecodes
zanecodeshttps://github.com/zanecodes
Feb 8, 2023https://github.com/python-semver/python-semver/pull/393#issue-1576738703
the arguments passed to cli.main()https://github.com/python-semver/python-semver/blob/master/src/semver/__main__.py#L28
argparse.ArgumentParser.parse_args() will use sys.argv[1:] by defaulthttps://github.com/python/cpython/blob/3.11/Lib/argparse.py#L1871
Please reload this pagehttps://github.com/python-semver/python-semver/pull/393
https://github.com/zanecodes
Fix: All python -m semver commands fail with 'error: invalid choice:'https://github.com/python-semver/python-semver/pull/393/commits/a5f3a69d524b06486b70b4c626d458edd0aa83ba
a5f3a69https://github.com/python-semver/python-semver/pull/393/commits/a5f3a69d524b06486b70b4c626d458edd0aa83ba
https://github.com/tomschr
tomschrhttps://github.com/tomschr
Feb 9, 2023https://github.com/python-semver/python-semver/pull/393#issuecomment-1423715567
@zanecodeshttps://github.com/zanecodes
Please reload this pagehttps://github.com/python-semver/python-semver/pull/393
https://github.com/tomschr
tomschrhttps://github.com/tomschr
Bug https://github.com/python-semver/python-semver/issues?q=state%3Aopen%20label%3ABug
Release_3.x.y https://github.com/python-semver/python-semver/issues?q=state%3Aopen%20label%3ARelease_3.x.y
Feb 22, 2023https://github.com/python-semver/python-semver/pull/393#event-8580271423
https://github.com/tomschr
tomschrhttps://github.com/tomschr
Feb 22, 2023https://github.com/python-semver/python-semver/pull/393#issuecomment-1439914831
@zanecodeshttps://github.com/zanecodes
Please reload this pagehttps://github.com/python-semver/python-semver/pull/393
https://github.com/tomschr
tomschrhttps://github.com/tomschr
7e062c8https://github.com/python-semver/python-semver/commit/7e062c832f8e10cec6b663eda5124f206bf56ca8
Feb 22, 2023https://github.com/python-semver/python-semver/pull/393#event-8580337883
tomschrhttps://github.com/tomschr
Feb 22, 2023 https://github.com/python-semver/python-semver/pull/393#ref-commit-a1604fb
https://github.com/tomschr
Add changelog entry for prhttps://github.com/python-semver/python-semver/commit/a1604fb9e8841d6cddbaff97bd4b8057b9600ae5
#393https://github.com/python-semver/python-semver/pull/393
a1604fbhttps://github.com/python-semver/python-semver/commit/a1604fb9e8841d6cddbaff97bd4b8057b9600ae5
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-semver%2Fpython-semver%2Fpull%2F393
Bug https://github.com/python-semver/python-semver/issues?q=state%3Aopen%20label%3ABug
Release_3.x.y https://github.com/python-semver/python-semver/issues?q=state%3Aopen%20label%3ARelease_3.x.y
Please reload this pagehttps://github.com/python-semver/python-semver/pull/393
https://github.com/zanecodes
https://github.com/tomschr
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.