Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for color=never CLI flag #93

Merged
merged 1 commit into from Jan 11, 2019
Merged

Add support for color=never CLI flag #93

merged 1 commit into from Jan 11, 2019

Conversation

qix
Copy link
Contributor

@qix qix commented Jan 11, 2019

Your code has support for always, it seems expected that never would work too.

I would like to use these as flags, they seem standard and have been included in grep

     --colour=[when, --color=[when]]
             Mark up the matching text with the expression stored in GREP_COLOR environment variable.  The possible values of when can be `never', `always' or
             `auto'.

Your code has support for `always`, it seems expected that `never` would work too.

I would like to use these as flags, they seem standard and have been included in `grep`
```
     --colour=[when, --color=[when]]
             Mark up the matching text with the expression stored in GREP_COLOR environment variable.  The possible values of when can be `never', `always' or
             `auto'.
```
@Qix-
Copy link
Member

Qix- commented Jan 11, 2019

Hello, arch nemesis. It seems our paths have crossed. 😈

Yeah this looks fine. I'm surprised we didn't have this already, false is actually the less common of the two - I've seen never quite a few times.

I'll let @sindresorhus make the ultimate call but I'm 👍.

@sindresorhus sindresorhus changed the title Add support for color=never Add support for color=never CLI flag Jan 11, 2019
@sindresorhus sindresorhus merged commit 17e9579 into chalk:master Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants