You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The defaults are also in the same plaintext as the main help, but some other CLIs use another colour.
Typer defaults are light grey:
Composer defaults are yellow:
For argparse, I suggest having "(default: " and ")" in grey, as they're not so important (and always the same). And the default value itself in (non-bold) yellow, to mirror the (bold) yellow of the label, where the default is sort of slotting into. For example, "pretty" is the default format, and the other choices are also in yellow:
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Feature or enhancement
Proposal:
argparse help is in colour in Python 3.14:
The defaults are also in the same plaintext as the main help, but some other CLIs use another colour.
Typer defaults are light grey:
Composer defaults are yellow:
For argparse, I suggest having "(default: " and ")" in grey, as they're not so important (and always the same). And the default value itself in (non-bold) yellow, to mirror the (bold) yellow of the label, where the default is sort of slotting into. For example, "pretty" is the default format, and the other choices are also in yellow:
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
argparsehelp #141680