zendesk / ultragrep

the grep that greps the hardest.
Apache License 2.0
29 stars 4 forks source link

support -v #5

Open osheroff opened 11 years ago

osheroff commented 11 years ago

-v (and multiple -v params) can occasionally come in handy to filter requests.

vanchi-zendesk commented 11 years ago

This would change ultragrep usage I think. -v is currently verbose.

How about ultragrep -f /abc/, /xyz -a /pqr/ ?

-f --filter, -a --allow

vanchi-zendesk commented 11 years ago

Or, alternatively,

ultragrep -f /abc/ -f /xyz/ /pqr/ /mno/ (-f has only one argument)

osheroff commented 11 years ago

true; or we could just break backwards compatibility. Although I think people use the -v flag quite a bit.

prefer -f 'regexp' 'regexp' 'regexp' to retraining people to always type -a.

osheroff commented 11 years ago

I've deprecated -v in the to-be-released gemified ultragrep so that we can get it back for inverse matching.