From b4781e2f91c0ea561fe8a8cb80cfae3aae9bfffb Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Mon, 23 Apr 2018 18:07:57 -0400 Subject: [PATCH] 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 --- src/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app.rs b/src/app.rs index 54ae1ac..5d4faac 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1281,8 +1281,8 @@ This flag can be disabled with the --ignore-vcs flag. fn flag_no_messages(args: &mut Vec) { 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. ");