On Thu, Mar 20, 2014 at 11:37 PM, Paul Wise <[email protected]> wrote:
> ---
>  codespell.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/codespell.py b/codespell.py
> index fdbd5cb..816593c 100755
> --- a/codespell.py
> +++ b/codespell.py
> @@ -478,7 +478,7 @@ def main(*args):
>
>      build_dict(options.dictionary)
>      colors = TermColors();
> -    if options.disable_colors:
> +    if options.disable_colors or not sys.stdout.isatty():

I think we need a way to disable it by default if it's not a tty, but
not impose it. IMO it's a pain to review big projects without color,
so in general I save to a file and review with less, that is capable
of displaying the colors.

Lucas De Marchi


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to