Skip to content

Commit 2e22e4d

Browse files
committed
Remove --color=true
Reason since you can either use --color=false to disable colors or use colors which should be on by default without needing to use a config. 1.x release broke grunt see gruntjs/grunt-legacy-log#16 So instead if it detect that --color=false or --no-color are not be using then it will switch colors on by default like it use too.
1 parent 9f3ace4 commit 2e22e4d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

lib/system/supports-colors.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ module.exports = (function () {
3131
return false;
3232
}
3333

34-
if (argv.indexOf('--color') !== -1 ||
35-
argv.indexOf('--color=true') !== -1 ||
36-
argv.indexOf('--color=always') !== -1) {
34+
if (!argv.indexOf('--no-color') !== -1 ||
35+
!argv.indexOf('--color=false') !== -1) {
3736
return true;
3837
}
3938

@@ -58,4 +57,4 @@ module.exports = (function () {
5857
}
5958

6059
return false;
61-
})();
60+
})();

0 commit comments

Comments
 (0)