Make use of --color with no argument equivalent to --color=always

This commit is contained in:
David Haguenauer 2015-12-04 10:57:54 -05:00
parent a3d4101d6c
commit 0044c3dd6e
1 changed files with 2 additions and 1 deletions

View File

@ -75,7 +75,8 @@ options = [
Option "f" ["format"] Option "f" ["format"]
(ReqArg (Flag "format") "FORMAT") "output format", (ReqArg (Flag "format") "FORMAT") "output format",
Option "C" ["color"] Option "C" ["color"]
(ReqArg (Flag "color") "WHEN") "Set use of color (auto, always, never)", (OptArg (maybe (Flag "color" "always") (Flag "color")) "WHEN")
"Set use of color (auto, always, never)",
Option "s" ["shell"] Option "s" ["shell"]
(ReqArg (Flag "shell") "SHELLNAME") "Specify dialect (sh,bash,dash,ksh)", (ReqArg (Flag "shell") "SHELLNAME") "Specify dialect (sh,bash,dash,ksh)",
Option "x" ["external-sources"] Option "x" ["external-sources"]