Skip to content

Commit d355599

Browse files
committed
Don't enable color output by default on MS Windows
1 parent 035a341 commit d355599

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cwltool/argparser.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from .process import Process, shortname
2222
from .resolver import ga4gh_tool_registries
2323
from .software_requirements import SOFTWARE_REQUIREMENTS_ENABLED
24-
from .utils import DEFAULT_TMP_PREFIX
24+
from .utils import DEFAULT_TMP_PREFIX, onWindows
2525

2626

2727
def arg_parser() -> argparse.ArgumentParser:
@@ -493,13 +493,14 @@ def arg_parser() -> argparse.ArgumentParser:
493493
"--enable-color",
494494
action="store_true",
495495
help="Enable logging color (default enabled)",
496-
default=True,
496+
default=not onWindows(),
497497
)
498498
exgroup.add_argument(
499499
"--disable-color",
500500
action="store_false",
501501
dest="enable_color",
502502
help="Disable colored logging (default false)",
503+
default=onWindows(),
503504
)
504505

505506
parser.add_argument(

0 commit comments

Comments
 (0)