Respect the NO_COLOR
environment variable to disable default color output
#280
Labels
NO_COLOR
environment variable to disable default color output
#280
There is an informal standard described at https://no-color.org/ aimed at command-line programs that produce color output by default to respect the
NO_COLOR
environment variable to disable default color output. It would be nice ifeditorconfig-checker
followed it too. It does use colors by default, and there is the-no-color
command-line option to disable that, but I see the benefit of joining other numerous command-line tools listed at https://no-color.org/#software-directly-supporting-no_color-to-disable-color-output-by-default so that users can easily disable color in many applications at once.One small problem in context of
editorconfig-checker
- since the color output is default, there is only the-no-color
flag to turn it off, but there isn't an option to turn color on. For programs supportingNO_COLOR
, it seems to be expected, see https://no-color.org/#frequently-asked-questions:So I think such option allowing to override
NO_COLOR
setting and turn colors back on should be added - if there is already-no-color
to disable colors, maybe-color
could enable them?The text was updated successfully, but these errors were encountered: