tweak color env variable options

As noted in mylog's 2b1085c:
Looks like both the GNU tools' --color argument and cargo's
CARGO_TERM_COLOR expect always/never rather than on/off. Match that.
Might as well understand off/no/false and on/yes/true also.
This commit is contained in:
Scott Lamb
2021-03-12 09:24:20 -08:00
parent 8ced3155e2
commit 1458d668d7
3 changed files with 7 additions and 6 deletions

2
server/Cargo.lock generated
View File

@@ -1274,7 +1274,7 @@ dependencies = [
[[package]]
name = "mylog"
version = "0.1.0"
source = "git+https://github.com/scottlamb/mylog#1406a8d794d799971e0e1079d5188d2dc339c584"
source = "git+https://github.com/scottlamb/mylog#2b1085cfb3bd0b1f2afe7d8085045d81858c0050"
dependencies = [
"chrono",
"libc",