diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-02-02 14:17:30 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-02-02 14:17:30 +0200 |
commit | 7a554532562625efb7fa93141e55b2a66129617b (patch) | |
tree | 3dc081dc098923b42d9cb492b768231d06e6b12e /src/rspamadm | |
parent | 07e0b263fb50c296ea80f3db48c780fa2a54c653 (diff) | |
download | rspamd-7a554532562625efb7fa93141e55b2a66129617b.tar.gz rspamd-7a554532562625efb7fa93141e55b2a66129617b.zip |
[Minor] Forgot to update help text
Diffstat (limited to 'src/rspamadm')
-rw-r--r-- | src/rspamadm/grep.c | 13 |
1 files 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"; |