;doc: correction, NO_COLOR does not override --color=yes

This commit is contained in:
Simon Michael 2024-05-31 18:08:00 -10:00
parent c3c95990fa
commit 7f583a8414
3 changed files with 2 additions and 4 deletions

View File

@ -123,7 +123,6 @@ General output/reporting flags (supported by some commands):
Eg: -c '$1000.' or -c '1.000,00 EUR'
--color=YN --colour Use ANSI color codes in text output? Can be
'y'/'yes'/'always', 'n'/'no'/'never' or 'auto'.
(A NO_COLOR environment variable overrides this.)
--pretty[=YN] Use box-drawing characters in text output? Can be
'y'/'yes' or 'n'/'no'.
If YN is specified, the equals is required.

View File

@ -230,7 +230,6 @@ reportflags = [
(unlines
["Use ANSI color codes in text output? Can be"
,"'y'/'yes'/'always', 'n'/'no'/'never' or 'auto'."
,"(A NO_COLOR environment variable overrides this.)"
])
,flagOpt "yes" ["pretty"] (\s opts -> Right $ setopt "pretty" s opts) "YN"
"Use box-drawing characters in text output? Can be\n'y'/'yes' or 'n'/'no'.\nIf YN is specified, the equals is required."

View File

@ -725,9 +725,9 @@ The main journal file to use when not specified with `-f/--file`.
Default: `$HOME/.hledger.journal`.
**NO_COLOR**
If this environment variable is set (with any value),
If this environment variable exists (with any value, including empty),
hledger will not use ANSI color codes in terminal output,
unless overridden by an explicit `--color/--colour` option.
unless overridden by an explicit `--color=y`/`--colour=y` option.
# PART 2: DATA FORMATS