mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-04-19 09:02:15 +02:00
doc: clarify --files-with-matches and --files-without-match
Ref https://github.com/BurntSushi/ripgrep/issues/103#issuecomment-763083510 Closes #1869
This commit is contained in:
parent
beda5f70dc
commit
26a29c750e
@ -51,6 +51,8 @@ Bug fixes:
|
|||||||
Fix bug when computing column numbers in `--vimgrep` mode.
|
Fix bug when computing column numbers in `--vimgrep` mode.
|
||||||
* [BUG #1868](https://github.com/BurntSushi/ripgrep/issues/1868):
|
* [BUG #1868](https://github.com/BurntSushi/ripgrep/issues/1868):
|
||||||
Fix bug where `--passthru` and `-A/-B/-C` did not override each other.
|
Fix bug where `--passthru` and `-A/-B/-C` did not override each other.
|
||||||
|
* [BUG #1869](https://github.com/BurntSushi/ripgrep/pull/1869):
|
||||||
|
Clarify docs for `--files-with-matches` and `--files-without-match`.
|
||||||
* [BUG #1878](https://github.com/BurntSushi/ripgrep/issues/1878):
|
* [BUG #1878](https://github.com/BurntSushi/ripgrep/issues/1878):
|
||||||
Fix bug where `\A` could produce unanchored matches in multiline search.
|
Fix bug where `\A` could produce unanchored matches in multiline search.
|
||||||
* [BUG 94e4b8e3](https://github.com/BurntSushi/ripgrep/commit/94e4b8e3):
|
* [BUG 94e4b8e3](https://github.com/BurntSushi/ripgrep/commit/94e4b8e3):
|
||||||
|
@ -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>) {
|
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!(
|
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.
|
This overrides --files-without-match.
|
||||||
"
|
"
|
||||||
@ -1287,11 +1287,11 @@ This overrides --files-without-match.
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn flag_files_without_match(args: &mut Vec<RGArg>) {
|
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!(
|
const LONG: &str = long!(
|
||||||
"\
|
"\
|
||||||
Only print the paths that contain zero matches. This inverts/negates the
|
Print the paths that contain zero matches and suppress match contents. This
|
||||||
--files-with-matches flag.
|
inverts/negates the --files-with-matches flag.
|
||||||
|
|
||||||
This overrides --files-with-matches.
|
This overrides --files-with-matches.
|
||||||
"
|
"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user