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

Make the -a warning be clear that it is unnecessary. #539

Closed petdance closed 7 years ago

petdance commented 9 years ago

https://gist.github.com/leto/eb928259ee9ba3662552 shows a frustrated Duke Leto not realizing that "ack1 -a foo" is equivalent to "ack2 foo". The warning message for -a right now says:

Option '-a' is not valid in ack 2
This is because we now have -k/--known-types which makes it only select files
of known types, rather than any text file (which is the behavior of ack 1.x).
You may have options in a .ackrc, or in the ACKRC_OPTIONS environment variable.
Try using the --dump flag. 

What's missing is an explicit "You don't need -a, ack 1.x users."

leto commented 9 years ago

Yes, please! Obviously this is not intuitive for elderly Ack users who have stubborn muscle memories...

petdance commented 9 years ago

Obviously.

petdance commented 7 years ago

Updated the message in ac2fea1. This will go out in 2.17_01. Thanks.