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
{{ message }}
Repository navigation
Improve argparse documentation about controlling color #140693
And in originally implementing, I also aimed to follow https://no-color.org/ about color=, see FAQ 2: "How should configuration files and command-line arguments be processed in the presence of NO_COLOR?"
Reacted by Savannah Ostrowski and Krishna Chaitanya
Activity
XChaitanyaX commentedon Oct 28, 2025
Working on this..
XChaitanyaX commentedon Oct 28, 2025
Why does
FORCE_COLOR = "1"andcolor=Falsedoes not give colored output??savannahostrowski commentedon Oct 28, 2025
Sorry, that's a typo. Below that, I have a note that
color=Falseactually takes precedence.It's worth tracing through the code, though, as you update the docs. I think there may be more context worth adding as well.
hugovk commentedon Oct 28, 2025
Note https://docs.python.org/3/using/cmdline.html#using-on-controlling-color details the precedence of the env vars, so we can refer to that.
And in originally implementing, I also aimed to follow https://no-color.org/ about
color=, see FAQ 2: "How should configuration files and command-line arguments be processed in the presence ofNO_COLOR?"gh-140693: Improve `argparse` documentation about controlling color (#…
pythongh-140693: Improve `argparse` documentation about controlling c…
[3.14] gh-140693: Improve `argparse` documentation about controlling …
pythongh-140693: Improve `argparse` documentation about controlling c…