GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add colour to Python help · Issue #148766 · python/cpython

Add colour to Python help #148766

New issue
Copy link
New issue
Copy link
Closed
Closed
Add colour to Python help#148766
Copy link
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement

Description

@hugovk
hugovk
opened on Apr 19, 2026
Issue body actions

Feature or enhancement

Proposal:

python --help (and especially --help-all) is a monochrome wall of text. Similar to argparse help, let's add some colour to add structure and improve readability.

Here's real screenshots of --help and termshot capture of --help-all:

Before After
--help
--help
--help-all
--help-all

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

  • gh-148766: Add colour to Python help #148767
Reacted by M. Kocher

Activity

  1. hugovk
    added
    type-featureA feature request or enhancementA feature request or enhancement
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    on Apr 19, 2026
  2. serhiy-storchaka commented on Apr 21, 2026

    @serhiy-storchaka
    serhiy-storchaka
    on Apr 21, 2026
    Member
    More actions

    Suggestions:

    • Show file and arg in the same color as option arguments.
    • Why use different colors for short and long options? I would use the same color (different from the color for environment variables).
    • There are references to options and environment variables in descriptions. I would highlight them too.
  3. hugovk commented on Apr 21, 2026

    @hugovk
    hugovk
    on Apr 21, 2026
    MemberAuthor
    More actions

    Suggestions:

    • Show file and arg in the same color as option arguments.

    I followed what argparse does, see the positional argument product here:

    Image
    • Why use different colors for short and long options? I would use the same color (different from the color for environment variables).

    Also for consistency with argparse.

    • There are references to options and environment variables in descriptions. I would highlight them too.

    👍 Will check this tomorrow.

  4. hugovk
    added a commit that references this issue on May 6, 2026

    gh-148766: Add colour to Python help (#148767)

    e7613f2
  5. hugovk
    closed this as completedon May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.