beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 138 forks source link

Bug in command line overrides. #391

Closed ericsubach closed 10 years ago

ericsubach commented 10 years ago

If I specify --html in my .ackrc and override it with --nohtml on the command line, it does override my .ackrc, but it also erroneously ignores any unknown file types. It should act as if I had typed ack --nohtml <search_string>, but does not.

Please note this is similar to, but separate from this feature request.

petdance commented 10 years ago

This is correct. If you specify any filetypes anywhere, you turn off the ability to find unknown types. That you used --html --nohtml doesn't change that.