rg: improved fixed string suggestion (#5995)

It's better to include a `--` prior to the search string so that strings
starting with `--` (e.g. `--foo`) aren't processed as cli options.

https://github.com/BurntSushi/ripgrep/discussions/1560#discussioncomment-6346
This commit is contained in:
Wyatt Childers
2021-05-19 11:19:10 -04:00
committed by GitHub
parent 40c7bc1e6a
commit f2b054d0e1

View File

@@ -34,4 +34,4 @@
- Search a literal string pattern:
`rg --fixed-strings {{string}}`
`rg --fixed-strings -- {{string}}`