diff options
author | Jade <software@lfcode.ca> | 2021-05-25 05:04:45 -0700 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2021-05-31 21:51:18 -0400 |
commit | 26a29c750ee962100ed5abf97a43feffcf3fe984 (patch) | |
tree | 9e2ee84b3dc375cc28fee7731aec97382990c8bf /crates | |
parent | beda5f70dc12ffba383f2861461820de24816ef3 (diff) |
doc: clarify --files-with-matches and --files-without-match
Ref https://github.com/BurntSushi/ripgrep/issues/103#issuecomment-763083510
Closes #1869
Diffstat (limited to 'crates')
-rw-r--r-- | crates/core/app.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/core/app.rs b/crates/core/app.rs index cca35111..41128c5f 100644 --- a/crates/core/app.rs +++ b/crates/core/app.rs @@ -1270,10 +1270,10 @@ This is useful to determine whether a particular file is being searched or not. } fn flag_files_with_matches(args: &mut Vec<RGArg>) { - const SHORT: &str = "Only print the paths with at least one match."; + const SHORT: &str = "Print the paths with at least one match."; const LONG: &str = long!( "\ -Only print the paths with at least one match. +Print the paths with at least one match and suppress match contents. This overrides --files-without-match. " @@ -1287,11 +1287,11 @@ This overrides --files-without-match. } fn flag_files_without_match(args: &mut Vec<RGArg>) { - const SHORT: &str = "Only print the paths that contain zero matches."; + const SHORT: &str = "Print the paths that contain zero matches."; const LONG: &str = long!( "\ -Only print the paths that contain zero matches. This inverts/negates the ---files-with-matches flag. +Print the paths that contain zero matches and suppress match contents. This +inverts/negates the --files-with-matches flag. This overrides --files-with-matches. " |