Commit 8503dfe5 authored by Ilya A. Kriveshko's avatar Ilya A. Kriveshko Committed by Dominic Hamon
Browse files

benchmark_color: fix auto option (#559) (#699)

As prevously written, "--benchmark_color=auto" was treated as true,
because IsTruthyFlagValue("auto") returned true.  The fix is to
rely on IsColorTerminal test only if the flag value is "auto",
and fall back to IsTruthyFlagValue otherwise.  I also integrated
force_no_color check into the same block.
parent 9ffb8df6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment