]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Use positional argument for log file in logstats/mapstats
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 11 Feb 2026 09:05:50 +0000 (09:05 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 11 Feb 2026 09:05:50 +0000 (09:05 +0000)
lualib/rspamadm/logstats.lua
lualib/rspamadm/mapstats.lua

index 9f46175a7666678f8ba54d19bf513c6816c1d06a..332cc3d78f1b6d72531e8c5ee1d754a11defb971 100644 (file)
@@ -24,9 +24,9 @@ local parser = argparse()
   :description "Analyze Rspamd rules by parsing log files"
   :help_description_margin(32)
 
-parser:option "-l --log"
-  :description "Log file or directory to read (stdin by default)"
-  :argname "<file>"
+parser:argument "log"
+  :description "Log file or directory to read (stdin if omitted)"
+  :args "?"
   :default ""
 parser:option "-r --reject-score"
   :description "Reject threshold"
index ee3a6100b9f5ee26ea50bb1aba748a1a9a51d0db..81fc9e8e21506fe5f395f16a6980665327548794 100644 (file)
@@ -24,9 +24,9 @@ local parser = argparse()
   :description "Count Rspamd multimap matches by parsing log files"
   :help_description_margin(32)
 
-parser:option "-l --log"
-  :description "Log file or directory to read (stdin by default)"
-  :argname "<file>"
+parser:argument "log"
+  :description "Log file or directory to read (stdin if omitted)"
+  :args "?"
   :default ""
 parser:option "-c --config"
   :description "Path to config file"