;doc: correction, NO_COLOR does not override --color=yes
This commit is contained in:
parent
c3c95990fa
commit
7f583a8414
@ -123,7 +123,6 @@ General output/reporting flags (supported by some commands):
|
|||||||
Eg: -c '$1000.' or -c '1.000,00 EUR'
|
Eg: -c '$1000.' or -c '1.000,00 EUR'
|
||||||
--color=YN --colour Use ANSI color codes in text output? Can be
|
--color=YN --colour Use ANSI color codes in text output? Can be
|
||||||
'y'/'yes'/'always', 'n'/'no'/'never' or 'auto'.
|
'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
|
--pretty[=YN] Use box-drawing characters in text output? Can be
|
||||||
'y'/'yes' or 'n'/'no'.
|
'y'/'yes' or 'n'/'no'.
|
||||||
If YN is specified, the equals is required.
|
If YN is specified, the equals is required.
|
||||||
|
|||||||
@ -230,7 +230,6 @@ reportflags = [
|
|||||||
(unlines
|
(unlines
|
||||||
["Use ANSI color codes in text output? Can be"
|
["Use ANSI color codes in text output? Can be"
|
||||||
,"'y'/'yes'/'always', 'n'/'no'/'never' or 'auto'."
|
,"'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"
|
,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."
|
"Use box-drawing characters in text output? Can be\n'y'/'yes' or 'n'/'no'.\nIf YN is specified, the equals is required."
|
||||||
|
|||||||
@ -725,9 +725,9 @@ The main journal file to use when not specified with `-f/--file`.
|
|||||||
Default: `$HOME/.hledger.journal`.
|
Default: `$HOME/.hledger.journal`.
|
||||||
|
|
||||||
**NO_COLOR**
|
**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,
|
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
|
# PART 2: DATA FORMATS
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user