From 7a554532562625efb7fa93141e55b2a66129617b Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Thu, 2 Feb 2017 14:17:30 +0200 Subject: [PATCH] [Minor] Forgot to update help text --- src/rspamadm/grep.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/rspamadm/grep.c b/src/rspamadm/grep.c index 3681873b5..7fa3b953d 100644 --- a/src/rspamadm/grep.c +++ b/src/rspamadm/grep.c @@ -39,12 +39,12 @@ struct rspamadm_command grep_command = { static GOptionEntry entries[] = { {"string", 's', 0, G_OPTION_ARG_STRING, &string, "Plain string to search (case-insensitive)", NULL}, - {"sensitive", 'S', 0, G_OPTION_ARG_NONE, &sensitive, - "Enable case-sensitivity in string search", NULL}, {"pattern", 'p', 0, G_OPTION_ARG_STRING, &pattern, "Pattern to search for (regex)", NULL}, {"input", 'i', 0, G_OPTION_ARG_STRING_ARRAY, &inputs, - "Process specified inputs", NULL}, + "Process specified inputs (stdin if unspecified)", NULL}, + {"sensitive", 'S', 0, G_OPTION_ARG_NONE, &sensitive, + "Enable case-sensitivity in string search", NULL}, {"orphans", 'o', 0, G_OPTION_ARG_NONE, &orphans, "Print orphaned logs", NULL}, {"partial", 'P', 0, G_OPTION_ARG_NONE, &orphans, @@ -60,13 +60,14 @@ rspamadm_grep_help (gboolean full_help) if (full_help) { help_str = "Search for patterns in rspamd logs\n\n" - "Usage: rspamadm grep <-s string | -p pattern> [-S] [-i input1 -i input2]\n" + "Usage: rspamadm grep <-s string | -p pattern> [-i input1 -i input2 -S -o -P]\n" "Where options are:\n\n" "-s: Plain string to search (case-insensitive)\n" + "-p: Pattern to search for (regex)\n" + "-i: Process specified inputs (stdin if unspecified)\n" "-S: Enable case-sensitivity in string search\n" "-o: Print orphaned logs\n" - "-p: Pattern to search for (regex)\n" - "-i: Process specified inputs\n"; + "-P: Print partial logs\n"; } else { help_str = "Search for patterns in rspamd logs"; -- 2.39.5