1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00

doc: more specific docs for --no-messages

This makes it clear that the --no-messages flag doesn't actually
suppress all error messages, and is therefore not equivalent to
redirecting stderr to /dev/null.

See also: #860
This commit is contained in:
Andrew Gallant 2018-04-23 18:07:57 -04:00
parent 8cb03941e6
commit b4781e2f91
No known key found for this signature in database
GPG Key ID: B2E3A4923F8B0D44

View File

@ -1281,8 +1281,8 @@ This flag can be disabled with the --ignore-vcs flag.
fn flag_no_messages(args: &mut Vec<RGArg>) {
const SHORT: &str = "Suppress all error messages.";
const LONG: &str = long!("\
Suppress all error messages. This provides the same behavior as redirecting
stderr to /dev/null on Unix-like systems.
Suppress all error messages related to opening and reading files. Error
messages related to the syntax of the pattern given are still shown.
This flag can be disabled with the --messages flag.
");