From a5141130f3e67a8e5b7fe893baae8d20a83e39d6 Mon Sep 17 00:00:00 2001 From: Brendan Jackman Date: Tue, 31 Oct 2017 12:44:54 +0000 Subject: [PATCH] logcat: Note in help that regexps are Perl-compatible The expressions accepted by the '-e'/'--grep' command line option are PCRE: https://android.googlesource.com/platform/system/core/+/master/logcat/logcat.cpp#1018 Say so in the help string. Change-Id: I7f6af130d5e39570bb49310a928f5d495e5b269b --- logcat/logcat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logcat/logcat.cpp b/logcat/logcat.cpp index 07981fcc8..a2aa48605 100644 --- a/logcat/logcat.cpp +++ b/logcat/logcat.cpp @@ -457,7 +457,7 @@ static void show_help(android_logcat_context_internal* context) { " -d Dump the log and then exit (don't block)\n" " -e , --regex=\n" " Only print lines where the log message matches \n" - " where is a regular expression\n" + " where is a Perl-compatible regular expression\n" // Leave --head undocumented as alias for -m " -m , --max-count=\n" " Quit after printing lines. This is meant to be\n"