MCPcopy Index your code
hub / github.com/google/codesearch / AddFlags

Method AddFlags

regexp/match.go:367–372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

365}
366
367func (g *Grep) AddFlags() {
368 flag.BoolVar(&g.L, "l", false, "list matching files only")
369 flag.BoolVar(&g.C, "c", false, "print match counts only")
370 flag.BoolVar(&g.N, "n", false, "show line numbers")
371 flag.BoolVar(&g.H, "h", false, "omit file names")
372}
373
374func (g *Grep) File(name string) {
375 f, err := os.Open(name)

Callers 2

mainFunction · 0.95
MainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected