We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c260bc commit 5824ce4Copy full SHA for 5824ce4
1 file changed
cmd/src/search.go
@@ -49,6 +49,12 @@ Other tips:
49
Force color output on (not on by default when piped to other programs) by setting COLOR=t
50
51
Query syntax: https://about.sourcegraph.com/docs/search/query-syntax/
52
+
53
+ Be careful with search strings including negation: a search with an initial
54
+ negated term may be parsed as a flag rather than as a search string. You can
55
+ use -- to ensure that src parses this correctly, eg:
56
57
+ $ src search -- '-repo:github.com/foo/bar error'
58
`
59
60
flagSet := flag.NewFlagSet("search", flag.ExitOnError)
0 commit comments