Fix setting stderr default coloring policy

stderr default should be set if stderr is None, not if stdout is None
This commit is contained in:
Jean-Philippe Ouellet 2017-11-20 00:44:07 -05:00
parent ef17e86810
commit 57bf88aa30
No known key found for this signature in database
GPG Key ID: 4747332C27533622

View File

@ -130,7 +130,7 @@ def main(args=None, app=None):
if args.color_output is None and args.filter_esc:
args.color_output = '31'
if args.color_output is None and os.isatty(sys.stderr.fileno()):
if args.color_stderr is None and os.isatty(sys.stderr.fileno()):
args.color_stderr = 31
if len(args.domains) > 1 and args.passio and not args.localcmd: