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

Treat -cc as --cc? #312

Closed hoelzro closed 7 years ago

hoelzro commented 11 years ago

I can't say how many times I've accidentally typed -cc when I meant to type --cc. -cc doesn't make sense anyway, so can we have ack treat it specially?

petdance commented 11 years ago

I don't think you can. I think that if Getopt sees a single hyphen, it sees everything after as stacked single-character arguments.

hoelzro commented 11 years ago

We could do funky pre-processing of @ARGV, but maybe that's too much black magic for something this simple.