From b72a6879c8dea90986387d58e7decb19e03ab17f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 29 May 2018 14:08:56 +0100 Subject: [PATCH] [Minor] Reuse description --- lualib/rspamadm/grep.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lualib/rspamadm/grep.lua b/lualib/rspamadm/grep.lua index 0e66b9770..f20ac76e5 100644 --- a/lualib/rspamadm/grep.lua +++ b/lualib/rspamadm/grep.lua @@ -20,7 +20,7 @@ local argparse = require "argparse" -- Define command line options local parser = argparse() :name "rspamadm grep" - :description "rspamadm grep - search for patterns in rspamd logs" + :description "Search for patterns in rspamd logs" :help_description_margin(30) parser:option "-s --string" :description('Plain string to search (case-insensitive)') @@ -166,6 +166,6 @@ end return { handler = handler, - description = 'Search for patterns in rspamd logs', + description = parser._description, name = 'grep' } \ No newline at end of file -- 2.39.5