1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-06-25 14:22:54 +02:00

Add example to -r/--replace docs.

Fixes #308
This commit is contained in:
Andrew Gallant
2017-01-10 16:43:28 -05:00
parent a6a24bafb3
commit 2143bcf9cb
3 changed files with 21 additions and 1 deletions

View File

@ -417,7 +417,10 @@ lazy_static! {
"Replace every match with the string given when printing \
results. Neither this flag nor any other flag will modify your \
files.\n\nCapture group indices (e.g., $5) and names \
(e.g., $foo) are supported in the replacement string.");
(e.g., $foo) are supported in the replacement string.\n\n\
Note that the replacement by default replaces each match, and \
NOT the entire line. To replace the entire line, you should \
match the entire line.");
doc!(h, "case-sensitive",
"Search case sensitively.",
"Search case sensitively. This overrides -i/--ignore-case and \