Skip to content

Commit 8f8a7cf

Browse files
author
rkern
committed
BUG: Default to not using color on Windows. Thanks to Paul Pelzl for pointing this out.
git-svn-id: https://svn.enthought.com/svn/sandbox/grin/trunk@75 b5260ef8-a2c4-4e91-82fd-f242746c304a
1 parent 40a8ee6 commit 8f8a7cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def get_grin_arg_parser(parser=None):
787787
parser.add_argument('-L', '--files-without-matches', action='store_true',
788788
dest='show_match', default=False,
789789
help="show the matches with the filenames")
790-
parser.add_argument('--no-color', action='store_true', default=False,
790+
parser.add_argument('--no-color', action='store_true', default=sys.platform == 'win32',
791791
help="do not use colorized output [default if piping the output]")
792792
parser.add_argument('--use-color', action='store_false', dest='no_color',
793793
help="use colorized output [default if outputting to a terminal]")

0 commit comments

Comments
 (0)