Re: [PATCH V3] checkpatch: Change format of --color argument to --color[=WHEN]

From: John Brooks
Date: Wed Jun 07 2017 - 09:41:40 EST


On Tue, Jun 06, 2017 at 06:50:06PM -0700, Joe Perches wrote:
> From: John Brooks <john@xxxxxxxxxxxxx>
>
> The boolean --color argument did not offer the ability to force colourized
> output even if stdout is not a terminal. Change the format of the argument
> to the familiar --color[=WHEN] construct as seen in common Linux utilities
> such as git, ls and dmesg, which allows the user to specify whether to
> colourize output "always", "never", or "auto" when the output is a terminal.
> The default is "auto".
>
> The old command-line uses of --color and --no-color are unchanged.
>
> Signed-off-by: John Brooks <john@xxxxxxxxxxxxx>
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>

Thanks for doing the V3 for me :)
I was going to but had other work to do last night.

John