fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

zoekt-index: USAGE message if no arguments supplied (#827)

Test Plan: go run ./cmd/zoekt-index prints out useful instructions

+7
+7
cmd/zoekt-index/main.go
··· 63 63 ignoreDirs := flag.String("ignore_dirs", ".git,.hg,.svn", "comma separated list of directories to ignore.") 64 64 flag.Parse() 65 65 66 + if flag.NArg() == 0 { 67 + fmt.Fprintf(flag.CommandLine.Output(), "USAGE: %s [options] PATHS...\n", filepath.Base(os.Args[0])) 68 + fmt.Fprintln(flag.CommandLine.Output(), "Options:") 69 + flag.PrintDefaults() 70 + os.Exit(1) 71 + } 72 + 66 73 // Tune GOMAXPROCS to match Linux container CPU quota. 67 74 _, _ = maxprocs.Set() 68 75