Title: Restructure Argument Clinic CLI · Issue #107467 · python/cpython · GitHub
Open Graph Title: Restructure Argument Clinic CLI · Issue #107467 · python/cpython
X Title: Restructure Argument Clinic CLI · Issue #107467 · python/cpython
Description: Suggesting to ...: make the clinic tool a well-behaved command-line citizen; write to stderr, not stdout, on error (partly depends on #107468) put the whole CLI in main, making it easier to mock the tool in the test suite (currently we u...
Open Graph Description: Suggesting to ...: make the clinic tool a well-behaved command-line citizen; write to stderr, not stdout, on error (partly depends on #107468) put the whole CLI in main, making it easier to mock th...
X Description: Suggesting to ...: make the clinic tool a well-behaved command-line citizen; write to stderr, not stdout, on error (partly depends on #107468) put the whole CLI in main, making it easier to mock th...
Opengraph URL: https://github.com/python/cpython/issues/107467
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Restructure Argument Clinic CLI","articleBody":"Suggesting to ...:\r\n\r\n- [x] make the clinic tool a well-behaved command-line citizen; write to `stderr`, not `stdout`, on error (partly depends on #107468)\r\n- [x] put the whole CLI in `main`, making it easier to mock the tool in the test suite (currently we use subprocesses, which is slow, and requires several lines of boiler-plate test setup code)\r\n- [x] ~~Introduce CLIError and use it for usage errors~~ Used `ArgumentParser.error` instead.\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-107469\r\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/erlend-aasland","@type":"Person","name":"erlend-aasland"},"datePublished":"2023-07-30T20:12:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/107467/cpython/issues/107467"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b91f40fd-20ba-44ee-2450-f20df8f81e24 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8734:AA16D:ACD9F9:F16690:696A2897 |
| html-safe-nonce | 882ff0c63a24559096ceb9f1226c35eb2d7cc7990359d94dc662b5104d2114aa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzM0OkFBMTZEOkFDRDlGOTpGMTY2OTA6Njk2QTI4OTciLCJ2aXNpdG9yX2lkIjoiMTk3MDU4OTMxNDIzOTMwOTk3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8f2e572238ce0ab1446f6ff8c2592956dbda88d933d96eecec59ae0a73af02cf |
| hovercard-subject-tag | issue:1828067761 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/107467/issue_layout |
| twitter:image | https://opengraph.githubassets.com/81b5bebdabfb46d0201474d506c783558345bb4b9a045877c4fdb66c5d29d393/python/cpython/issues/107467 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/81b5bebdabfb46d0201474d506c783558345bb4b9a045877c4fdb66c5d29d393/python/cpython/issues/107467 |
| og:image:alt | Suggesting to ...: make the clinic tool a well-behaved command-line citizen; write to stderr, not stdout, on error (partly depends on #107468) put the whole CLI in main, making it easier to mock th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | erlend-aasland |
| hostname | github.com |
| expected-hostname | github.com |
| None | a1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f472b8e6c7b3fdd5d0354972a3f4c516289bf0be |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width