René's URL Explorer Experiment


Title: Use `.. program::` and `.. option::` directives for modules with a documented CLI · Issue #130160 · python/cpython · GitHub

Open Graph Title: Use `.. program::` and `.. option::` directives for modules with a documented CLI · Issue #130160 · python/cpython

X Title: Use `.. program::` and `.. option::` directives for modules with a documented CLI · Issue #130160 · python/cpython

Description: This is something (#129607 (comment)) I thought of when reviewing #129607. It's usually fine not to have links, but once we begin adding new command-line options to specific modules (e.g., http.server), I think it'd be nice to be able to...

Open Graph Description: This is something (#129607 (comment)) I thought of when reviewing #129607. It's usually fine not to have links, but once we begin adding new command-line options to specific modules (e.g., http.ser...

X Description: This is something (#129607 (comment)) I thought of when reviewing #129607. It's usually fine not to have links, but once we begin adding new command-line options to specific modules (e.g., http...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use `.. program::` and `.. option::` directives for modules with a documented CLI","articleBody":"This is something (https://github.com/python/cpython/pull/129607#discussion_r1957162894) I thought of when reviewing #129607. It's usually fine not to have links, but once we begin adding new command-line options to specific modules (e.g., `http.server`), I think it'd be nice to be able to reference them using Sphinx.\n\nUsing the `.. program::` directive also improves readability. For instance, compare https://docs.python.org/3/library/dis.html#command-line-interface with https://docs.python.org/3/library/http.server.html where the CLI documentation is at the end of the page, without even a dedicated section.\n\nI suggest going through the modules in https://github.com/python/cpython/issues/109435 and select those whose documentation page can be improved. By looking at the list, I found the following that can be improved:\n\n- [x] https://docs.python.org/dev/library/ensurepip.html#command-line-interface ([gh-130253](https://github.com/python/cpython/pull/130253))\n- [x] https://docs.python.org/dev/library/idle.html#command-line-usage ([gh-130278](https://github.com/python/cpython/pull/130278))\n- [x] https://docs.python.org/3/library/pdb.html (roughly at 10% of the page)\n- [x] https://docs.python.org/dev/library/profile.html#instant-user-s-manual (roughly at 20% of the page) ([gh-130314](https://github.com/python/cpython/pull/130314))\n- [x] https://docs.python.org/dev/library/venv.html#creating-virtual-environments ([gh-130699](https://github.com/python/cpython/pull/130699))\n- [x] https://docs.python.org/3.14/library/webbrowser.html (section before https://docs.python.org/3.14/library/webbrowser.html#webbrowser.Error)\n\n`quopri` is both missing a documentation for its CLI so we can also add it. `base64` as well, but I think it's meant to be undocumented. More modules can be found in https://github.com/python/cpython/issues/93096 as well.\n\nFor now, I suggest focusing on only those who already have a documented command-line interface and just improving them. Whether a module should have its `main()` function documented or not is out-of-scope for this issue.\n\n\u003e [!IMPORTANT]\n\u003e For those who want to work on the issue, please:\n\u003e\n\u003e - Read https://devguide.python.org/getting-started/pull-request-lifecycle/ before anything else.\n\u003e - Read https://www.sphinx-doc.org/en/master/usage/domains/standard.html#directive-program to understand how to use the `program` directive.\n\u003e - Select **one** module for which the documentation will be improved. It's easier to review and backport.\n\u003e - Open a pull request with the following title: \u003ccode\u003egh-130160: use \\`.. program::\\` directive for documenting \\`MODULE_NAME\\` CLI\u003c/code\u003e\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-130253\n* gh-130258\n* gh-130259\n* gh-130255\n* gh-130264\n* gh-130265\n* gh-130278\n* gh-130314\n* gh-130494\n* gh-130495\n* gh-130497 (closed to allow newcomers to pick it up)\n* gh-130699\n* gh-130745\n* gh-130746\n* gh-130995\n* gh-130996\n* gh-131003\n* gh-131004\n* gh-131010\n* gh-131013\n* gh-131014\n* gh-131034\n* gh-131293\n* gh-131294\n* gh-131320\n* gh-131321\n* gh-133182\n* gh-133335\n* gh-133341\n* gh-136550\n* gh-136551\n* gh-141664\n* gh-141667\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/picnixz","@type":"Person","name":"picnixz"},"datePublished":"2025-02-15T17:49:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/130160/cpython/issues/130160"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d5b17b3a-714f-3f4d-5f4f-df602b0b66cd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8B7E:2BFBB8:20910EF:2C752EB:696ACA10
html-safe-nonce2061ac0b3254392362e726238546808e471a54060c7f7d45b165cc4370e8cbd7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjdFOjJCRkJCODoyMDkxMEVGOjJDNzUyRUI6Njk2QUNBMTAiLCJ2aXNpdG9yX2lkIjoiMzA0NjgxMzI2ODU1OTE4NjQ0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf46807dfeb5e7955d1d3e8051b556e1e7aebc77585d9050e6157c675b21bba7f
hovercard-subject-tagissue:2855628352
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/130160/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8f74e903e2a5a05f8b7efa6580532458458d0871a182a225d5c31e5c594fb58c/python/cpython/issues/130160
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8f74e903e2a5a05f8b7efa6580532458458d0871a182a225d5c31e5c594fb58c/python/cpython/issues/130160
og:image:altThis is something (#129607 (comment)) I thought of when reviewing #129607. It's usually fine not to have links, but once we begin adding new command-line options to specific modules (e.g., http.ser...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepicnixz
hostnamegithub.com
expected-hostnamegithub.com
Nonec785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d
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
releasec718a376fcf780eb22089171adb84a543f660bf7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/130160#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F130160
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%2Fissues%2F130160
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/130160
Reloadhttps://github.com/python/cpython/issues/130160
Reloadhttps://github.com/python/cpython/issues/130160
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/130160
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/issues/130160
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/130160
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/130160
#130278https://github.com/python/cpython/pull/130278
#130253https://github.com/python/cpython/pull/130253
Use .. program:: and .. option:: directives for modules with a documented CLIhttps://github.com/python/cpython/issues/130160#top
#130278https://github.com/python/cpython/pull/130278
#130253https://github.com/python/cpython/pull/130253
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
https://github.com/picnixz
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Feb 15, 2025https://github.com/python/cpython/issues/130160#issue-2855628352
#129607 (comment)https://github.com/python/cpython/pull/129607#discussion_r1957162894
#129607https://github.com/python/cpython/pull/129607
https://docs.python.org/3/library/dis.html#command-line-interfacehttps://docs.python.org/3/library/dis.html#command-line-interface
https://docs.python.org/3/library/http.server.htmlhttps://docs.python.org/3/library/http.server.html
#109435https://github.com/python/cpython/issues/109435
https://docs.python.org/dev/library/ensurepip.html#command-line-interfacehttps://docs.python.org/dev/library/ensurepip.html#command-line-interface
gh-130253https://github.com/python/cpython/pull/130253
https://docs.python.org/dev/library/idle.html#command-line-usagehttps://docs.python.org/dev/library/idle.html#command-line-usage
gh-130278https://github.com/python/cpython/pull/130278
https://docs.python.org/3/library/pdb.htmlhttps://docs.python.org/3/library/pdb.html
https://docs.python.org/dev/library/profile.html#instant-user-s-manualhttps://docs.python.org/dev/library/profile.html#instant-user-s-manual
gh-130314https://github.com/python/cpython/pull/130314
https://docs.python.org/dev/library/venv.html#creating-virtual-environmentshttps://docs.python.org/dev/library/venv.html#creating-virtual-environments
gh-130699https://github.com/python/cpython/pull/130699
https://docs.python.org/3.14/library/webbrowser.htmlhttps://docs.python.org/3.14/library/webbrowser.html
https://docs.python.org/3.14/library/webbrowser.html#webbrowser.Errorhttps://docs.python.org/3.14/library/webbrowser.html#webbrowser.Error
#93096https://github.com/python/cpython/issues/93096
https://devguide.python.org/getting-started/pull-request-lifecycle/https://devguide.python.org/getting-started/pull-request-lifecycle/
https://www.sphinx-doc.org/en/master/usage/domains/standard.html#directive-programhttps://www.sphinx-doc.org/en/master/usage/domains/standard.html#directive-program
gh-130160: use .. program:: directive for documenting ensurepip CLI #130253https://github.com/python/cpython/pull/130253
[3.12] gh-130160: use .. program:: directive for documenting ensurepip CLI (gh-130253) #130258https://github.com/python/cpython/pull/130258
[3.13] gh-130160: use .. program:: directive for documenting ensurepip CLI (gh-130253) #130259https://github.com/python/cpython/pull/130259
gh-130160: use option instead of cmdoption in dis.rst #130255https://github.com/python/cpython/pull/130255
[3.13] gh-130160: use option instead of cmdoption in dis.rst (GH-130255) #130264https://github.com/python/cpython/pull/130264
[3.12] gh-130160: use option instead of cmdoption in dis.rst (GH-130255) #130265https://github.com/python/cpython/pull/130265
gh-130160: use .. program:: directive for documenting idle CLI #130278https://github.com/python/cpython/pull/130278
gh-130160: use .. program:: directive for documenting cProfile CLI #130314https://github.com/python/cpython/pull/130314
[3.13] gh-130160: use .. program:: directive for documenting idle CLI (GH-130278) #130494https://github.com/python/cpython/pull/130494
[3.12] gh-130160: use .. program:: directive for documenting idle CLI (GH-130278) #130495https://github.com/python/cpython/pull/130495
gh-130160: Convert webbrowser docs to use .. option directive #130497https://github.com/python/cpython/pull/130497
gh-130160: use .. program:: directive for documenting venv CLI #130699https://github.com/python/cpython/pull/130699
[3.13] gh-130160: use .. program:: directive for documenting cProfile CLI (GH-130314) #130745https://github.com/python/cpython/pull/130745
[3.12] gh-130160: use .. program:: directive for documenting cProfile CLI (GH-130314) #130746https://github.com/python/cpython/pull/130746
gh-130160: use .. program:: directive for documenting webbrowser CLI #130995https://github.com/python/cpython/pull/130995
gh-130160: use .. program:: directive for documenting pdb CLI #130996https://github.com/python/cpython/pull/130996
[3.13] gh-130160: use .. program:: directive for documenting webbrowser CLI (GH-130995) #131003https://github.com/python/cpython/pull/131003
[3.12] gh-130160: use .. program:: directive for documenting webbrowser CLI (GH-130995) #131004https://github.com/python/cpython/pull/131004
gh-130160: use .. program:: directive for documenting http.server CLI #131010https://github.com/python/cpython/pull/131010
[3.12] gh-130160: use .. program:: directive for documenting pdb CLI (GH-130996) #131013https://github.com/python/cpython/pull/131013
[3.13] gh-130160: use .. program:: directive for documenting pdb CLI (GH-130996) #131014https://github.com/python/cpython/pull/131014
gh-130160: use .. program:: directive for documenting doctest CLI #131034https://github.com/python/cpython/pull/131034
[3.13] gh-130160: use .. program:: directive for documenting http.server CLI (GH-131010) #131293https://github.com/python/cpython/pull/131293
[3.12] gh-130160: use .. program:: directive for documenting http.server CLI (GH-131010) #131294https://github.com/python/cpython/pull/131294
[3.13] gh-130160: use .. program:: directive for documenting doctest CLI (GH-131034) #131320https://github.com/python/cpython/pull/131320
[3.12] gh-130160: use .. program:: directive for documenting doctest CLI (GH-131034) #131321https://github.com/python/cpython/pull/131321
gh-130160: Add anchors to CLI Usage section for cmdline #133182https://github.com/python/cpython/pull/133182
gh-130160: use .. program:: directive for documenting platform CLI #133335https://github.com/python/cpython/pull/133335
[3.13] gh-130160: use .. program:: directive for documenting platform CLI (GH-133335) #133341https://github.com/python/cpython/pull/133341
[3.14] gh-130160: use .. program:: directive for documenting venv CLI (GH-130699) #136550https://github.com/python/cpython/pull/136550
[3.13] gh-130160: use .. program:: directive for documenting venv CLI (GH-130699) #136551https://github.com/python/cpython/pull/136551
[3.14] gh-130160: Add anchors to CLI Usage section for cmdline (GH-133182) #141664https://github.com/python/cpython/pull/141664
[3.13] gh-130160: Add anchors to CLI Usage section for cmdline (GH-133182) #141667https://github.com/python/cpython/pull/141667
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
docs issueshttps://github.com/orgs/python/projects/52
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.