René's URL Explorer Experiment


Title: gh-107467: Restructure Argument Clinic command-line interface by erlend-aasland · Pull Request #107469 · python/cpython · GitHub

Open Graph Title: gh-107467: Restructure Argument Clinic command-line interface by erlend-aasland · Pull Request #107469 · python/cpython

X Title: gh-107467: Restructure Argument Clinic command-line interface by erlend-aasland · Pull Request #107469 · python/cpython

Description: Add and use CLIError exception for CLI usage errors On CLI error, print to stderr instead of stdout Put the entire CLI in main() Rework ClinicExternalTest to call main() instead of using subprocess...

Open Graph Description: Add and use CLIError exception for CLI usage errors On CLI error, print to stderr instead of stdout Put the entire CLI in main() Rework ClinicExternalTest to call main() instead of using subprocess...

X Description: Add and use CLIError exception for CLI usage errors On CLI error, print to stderr instead of stdout Put the entire CLI in main() Rework ClinicExternalTest to call main() instead of using subprocess...

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

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:7f5ffd72-b112-ecde-022e-c0fa257c4653
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA584:15879E:335968:48BD70:696A440A
html-safe-noncea41fa3e4716a738571188456ae5bc5dbfbdf6b1856e75737c4b14309ecc7f90e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTg0OjE1ODc5RTozMzU5Njg6NDhCRDcwOjY5NkE0NDBBIiwidmlzaXRvcl9pZCI6IjY4MjYyODQxNTQzMDgxNTAyODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca701044112e65b63945f3727687921fe6b6bcbe9907bfe8fcecc44d4c91bba50
hovercard-subject-tagpull_request:1455272433
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/107469/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/2ec7194e135f7aea6d2bb9e414d0ed7df38aa70ad34961d715b6715c15bd020b/python/cpython/pull/107469
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2ec7194e135f7aea6d2bb9e414d0ed7df38aa70ad34961d715b6715c15bd020b/python/cpython/pull/107469
og:image:altAdd and use CLIError exception for CLI usage errors On CLI error, print to stderr instead of stdout Put the entire CLI in main() Rework ClinicExternalTest to call main() instead of using subprocess...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameerlend-aasland
hostnamegithub.com
expected-hostnamegithub.com
None3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef
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
release63c426b30d262aba269ef14c40e3c817b384cd61
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/107469#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F107469
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%2F107469
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/107469
Reloadhttps://github.com/python/cpython/pull/107469
Reloadhttps://github.com/python/cpython/pull/107469
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/107469
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/107469
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/107469#issue-comment-box
erlend-aaslandhttps://github.com/erlend-aasland
python:mainhttps://github.com/python/cpython/tree/main
erlend-aasland:clinic/rework-clihttps://github.com/erlend-aasland/cpython/tree/clinic/rework-cli
gh-107467: Restructure Argument Clinic command-line interface https://github.com/python/cpython/pull/107469#top
erlend-aaslandhttps://github.com/erlend-aasland
python:mainhttps://github.com/python/cpython/tree/main
erlend-aasland:clinic/rework-clihttps://github.com/erlend-aasland/cpython/tree/clinic/rework-cli
Conversation 9 https://github.com/python/cpython/pull/107469
Commits 8 https://github.com/python/cpython/pull/107469/commits
Checks 0 https://github.com/python/cpython/pull/107469/checks
Files changed https://github.com/python/cpython/pull/107469/files
Please reload this pagehttps://github.com/python/cpython/pull/107469
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Jul 30, 2023https://github.com/python/cpython/pull/107469#issue-1828094165
Please reload this pagehttps://github.com/python/cpython/pull/107469
Restructure Argument Clinic CLI #107467https://github.com/python/cpython/issues/107467
Please reload this pagehttps://github.com/python/cpython/pull/107469
erlend-aaslandhttps://github.com/erlend-aasland
July 30, 2023 23:28https://github.com/python/cpython/pull/107469#commits-pushed-a16fe3f
https://github.com/erlend-aasland
pythongh-107467https://github.com/python/cpython/issues/107467
: Restructure Argument Clinic command-line interfacehttps://github.com/python/cpython/pull/107469/commits/a16fe3fa2de8b6e551cc891a7a1bad287e75107c
a16fe3fhttps://github.com/python/cpython/pull/107469/commits/a16fe3fa2de8b6e551cc891a7a1bad287e75107c
https://github.com/erlend-aasland
Add NEWShttps://github.com/python/cpython/pull/107469/commits/665d44f36fdf1ce60b031c0aa54c8786e1bb710d
665d44fhttps://github.com/python/cpython/pull/107469/commits/665d44f36fdf1ce60b031c0aa54c8786e1bb710d
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
AlexWaygoodhttps://github.com/AlexWaygood
code ownerhttps://github.com/python/cpython/blob/a24e25d74bb5d30775a61853d34e0bb5a7e12c64/.github/CODEOWNERS#L179
July 30, 2023 21:33https://github.com/python/cpython/pull/107469#event-9957487654
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jul 30, 2023https://github.com/python/cpython/pull/107469#event-9957487714
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Jul 30, 2023https://github.com/python/cpython/pull/107469#event-9957488287
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Jul 30, 2023 https://github.com/python/cpython/pull/107469#ref-issue-1828067761
Restructure Argument Clinic CLI #107467 https://github.com/python/cpython/issues/107467
erlend-aaslandhttps://github.com/erlend-aasland
July 31, 2023 00:05https://github.com/python/cpython/pull/107469#commits-pushed-0a55f22
https://github.com/erlend-aasland
Style nit: add missing newlinehttps://github.com/python/cpython/pull/107469/commits/0a55f221083ae7f17a75e6aaf1cfe65d8351b4ff
0a55f22https://github.com/python/cpython/pull/107469/commits/0a55f221083ae7f17a75e6aaf1cfe65d8351b4ff
https://github.com/erlend-aasland
Only run_clinic() can raise CLIErrorhttps://github.com/python/cpython/pull/107469/commits/fd72387853159d514071b54034806441eae9b24a
fd72387https://github.com/python/cpython/pull/107469/commits/fd72387853159d514071b54034806441eae9b24a
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Jul 31, 2023https://github.com/python/cpython/pull/107469#issuecomment-1658176059
@AlexWaygoodhttps://github.com/AlexWaygood
Please reload this pagehttps://github.com/python/cpython/pull/107469
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jul 31, 2023https://github.com/python/cpython/pull/107469#issuecomment-1658179066
@AlexWaygoodhttps://github.com/AlexWaygood
Please reload this pagehttps://github.com/python/cpython/pull/107469
https://github.com/AlexWaygood
Don't reinvent the argparse wheelhttps://github.com/python/cpython/pull/107469/commits/75e81b7f2d2f00358511430b23c39eb504331152
75e81b7https://github.com/python/cpython/pull/107469/commits/75e81b7f2d2f00358511430b23c39eb504331152
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Aug 1, 2023https://github.com/python/cpython/pull/107469#issuecomment-1660228719
erlend-aasland#48https://github.com/erlend-aasland/cpython/pull/48
Please reload this pagehttps://github.com/python/cpython/pull/107469
https://github.com/AlexWaygood
Harmonise expect_failure and expect_successhttps://github.com/python/cpython/pull/107469/commits/81aafde8c63a4186a73be7c685d9d7f711cc8dfe
81aafdehttps://github.com/python/cpython/pull/107469/commits/81aafde8c63a4186a73be7c685d9d7f711cc8dfe
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Aug 1, 2023 https://github.com/python/cpython/pull/107469#pullrequestreview-1556927953
View reviewed changes https://github.com/python/cpython/pull/107469/files/81aafde8c63a4186a73be7c685d9d7f711cc8dfe
AlexWaygoodhttps://github.com/AlexWaygood
https://github.com/python/cpython/pull/107469#pullrequestreview-1556927953
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/107469
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 1, 2023https://github.com/python/cpython/pull/107469#event-9976229693
AlexWaygoodhttps://github.com/AlexWaygood
August 1, 2023 14:00https://github.com/python/cpython/pull/107469#commits-pushed-34e3550
https://github.com/AlexWaygood
Unused importshttps://github.com/python/cpython/pull/107469/commits/34e3550f39215b625b871e0912e38d90fe8dd934
34e3550https://github.com/python/cpython/pull/107469/commits/34e3550f39215b625b871e0912e38d90fe8dd934
https://github.com/AlexWaygood
sys.exit(0) is only called from main()https://github.com/python/cpython/pull/107469/commits/71d1c6b8ecf44ef7f460b37eac559409db22500d
71d1c6bhttps://github.com/python/cpython/pull/107469/commits/71d1c6b8ecf44ef7f460b37eac559409db22500d
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Aug 1, 2023 https://github.com/python/cpython/pull/107469#pullrequestreview-1557375362
View reviewed changes https://github.com/python/cpython/pull/107469/files/71d1c6b8ecf44ef7f460b37eac559409db22500d
Tools/clinic/clinic.pyhttps://github.com/python/cpython/pull/107469/files/71d1c6b8ecf44ef7f460b37eac559409db22500d#diff-4c6b55ec7d80a3d60f100ce230eb879d9acbe2e558e01d318960e6197d7c47b3
Please reload this pagehttps://github.com/python/cpython/pull/107469
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
Aug 1, 2023https://github.com/python/cpython/pull/107469#issuecomment-1660651283
Please reload this pagehttps://github.com/python/cpython/pull/107469
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
49f238ehttps://github.com/python/cpython/commit/49f238e78c36532bcbca7f9cd172703eb4df319b
Aug 1, 2023https://github.com/python/cpython/pull/107469#event-9978770248
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Aug 1, 2023https://github.com/python/cpython/pull/107469#event-9978770760
https://github.com/erlend-aasland
erlend-aaslandhttps://github.com/erlend-aasland
August 1, 2023 16:24https://github.com/python/cpython/pull/107469#event-9978770846
https://github.com/bedevere-bot
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F107469
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Aug 3, 2023 https://github.com/python/cpython/pull/107469#ref-pullrequest-1835715783
gh-106368: Argument clinic tests: improve error message when expect_success() fails #107606 https://github.com/python/cpython/pull/107606
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%2F107469
https://github.com/AlexWaygood
AlexWaygood https://github.com/AlexWaygood
https://github.com/python/cpython/pull/107469/files/71d1c6b8ecf44ef7f460b37eac559409db22500d
Please reload this pagehttps://github.com/python/cpython/pull/107469
https://github.com/erlend-aasland
https://github.com/AlexWaygood
https://github.com/bedevere-bot
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.