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

fix nimgrep color on posix #7591 #12288

Merged
merged 1 commit into from
Sep 27, 2019
Merged

fix nimgrep color on posix #7591 #12288

merged 1 commit into from
Sep 27, 2019

Conversation

a-mr
Copy link
Contributor

@a-mr a-mr commented Sep 27, 2019

This fixes a couple of color highlighting issues for nimgrep on Linux:

  • bug of option --nocolor being ignored on posix when output is connected to terminal. It's because of the wrong ordering of posix handling and CLI option processing code
  • it's impossible to force it to display in colors. A new option --color:always is added. So nimgrep will follow the convention used by GNU grep, Git, Mercurial, etc. of having options --color [never | always | auto].

@Araq Araq merged commit 5a65243 into nim-lang:devel Sep 27, 2019
@Araq
Copy link
Member

Araq commented Sep 27, 2019

Thank you!

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.

2 participants