Disable color output and progress bar on Windows by default
The default Windows terminal doesn't cope too well with either.
@@ -84,10 +84,18 @@ def ArgumentParser(specification, spec_arg=True):
'(default: LOGLEVEL)'
).format(', '.join(log_levels.keys())))
- argument_parser.add_argument('-n', '--no-progress', default=False, action='store_true',
+ argument_parser.add_argument(
+ '-n',
+ '--no-progress',
+ default=(True if sys.platform == "win32" else False),
+ action='store_true',
help='In a tty as stdout, don\'t render the progress indicators.')
- argument_parser.add_argument('-C', '--no-colors', default=False, action='store_true',
+ argument_parser.add_argument(
+ '-C',
+ '--no-colors',
+ default=(True if sys.platform == "win32" else False),
+ action='store_true',
help='No colors for tty output.')
argument_parser.add_argument('-S', '--show-sections', default=False, action='store_true',
