Skip to content

gh-142389: Add support for backtick colorisation in argparse help text#149375

Open
hugovk wants to merge 2 commits intopython:mainfrom
hugovk:3.15-argparse-help-backticks
Open

gh-142389: Add support for backtick colorisation in argparse help text#149375
hugovk wants to merge 2 commits intopython:mainfrom
hugovk:3.15-argparse-help-backticks

Conversation

@hugovk
Copy link
Copy Markdown
Member

@hugovk hugovk commented May 4, 2026

#142390 added support for displaying text enclosed in backticks in colour for the help description and epilogue.

This PR adds it for individual help.

Also add backticks to python -m test --help:

image

Will add to other stdlib CLIs in a followup.

@hugovk hugovk requested a review from savannahostrowski as a code owner May 4, 2026 18:13
@hugovk hugovk added the stdlib Standard Library Python modules in the Lib/ directory label May 4, 2026
@hugovk hugovk requested a review from AA-Turner as a code owner May 4, 2026 18:13
@read-the-docs-community
Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #32531060 | 📁 Comparing d8f6526 against main (10f950c)

  🔍 Preview build  

3 files changed
± library/argparse.html
± whatsnew/3.15.html
± whatsnew/changelog.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting core review stdlib Standard Library Python modules in the Lib/ directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant