Skip to content

Commit

Permalink
Add support for color=never CLI flag (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
qix authored and sindresorhus committed Jan 11, 2019
1 parent d2b1ae8 commit 17e9579
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const {env} = process;
let forceColor;
if (hasFlag('no-color') ||
hasFlag('no-colors') ||
hasFlag('color=false')) {
hasFlag('color=false') ||
hasFlag('color=never')) {
forceColor = 0;
} else if (hasFlag('color') ||
hasFlag('colors') ||
Expand Down

0 comments on commit 17e9579

Please sign in to comment.