gvansickle / ucg

UniversalCodeGrep (ucg) is an extremely fast grep-like tool specialized for searching large bodies of source code.

Home Page:https://gvansickle.github.io/ucg/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement unique prefix matching for --TYPE command line params.

gvansickle opened this issue · comments

For feature parity with at least ag and ack, which both support --py while we need the full --python.

Note on support for --noTYPE:

  • ag doesn't support that syntax.
  • ack does support this, with the expected ambiguity detection behavior, i.e.:
$ ack --noc '\bimport\b' ../
Option noc is ambiguous (nocc, nocfmx, noclojure, nocmake, nocoffeescript, nocolor, nocolour, nocolumn, nocpp, nocsharp, nocss)
ack: Invalid option on command line

Following ack behavior on this one.