summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2017-01-10 16:43:28 -0500
committerAndrew Gallant <jamslam@gmail.com>2017-01-10 16:43:28 -0500
commit2143bcf9cb259c2230aa79a7cbc23cb1ec1fdae7 (patch)
tree1bd07c466544281ad7381321e3ef3c97a4b0ef6b /src
parenta6a24bafb383a149ff22504be640569563e63b41 (diff)
Add example to -r/--replace docs.
Fixes #308
Diffstat (limited to 'src')
-rw-r--r--src/app.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app.rs b/src/app.rs
index ff61c0a3..a9dd06a6 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -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 \