gh-141679: Add colour to defaults in argparse help (#141680)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
This commit is contained in:
Hugo van Kemenade 2025-11-23 02:26:50 +02:00 committed by GitHub
parent 227b9d326e
commit e73fbbacbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 20 additions and 8 deletions

View file

@ -168,6 +168,8 @@ class Argparse(ThemeSection):
short_option: str = ANSIColors.BOLD_GREEN
label: str = ANSIColors.BOLD_YELLOW
action: str = ANSIColors.BOLD_GREEN
default: str = ANSIColors.GREY
default_value: str = ANSIColors.YELLOW
reset: str = ANSIColors.RESET
error: str = ANSIColors.BOLD_MAGENTA
warning: str = ANSIColors.BOLD_YELLOW