]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Prevent option duplicates in rspamd_stats.pl 5365/head
authorJérôme Lebleu <jeromelebleu@users.noreply.github.com>
Sun, 2 Mar 2025 12:57:10 +0000 (13:57 +0100)
committerJérôme Lebleu <jeromelebleu@users.noreply.github.com>
Sun, 2 Mar 2025 12:57:10 +0000 (13:57 +0100)
utils/rspamd_stats.pl

index 9c5f2acb07e5f3e1d09f62de149c2b2c5e5105e1..1d060e4a53d22432ca480bf9d0dffcdf6f514020 100755 (executable)
@@ -39,6 +39,8 @@ my %decompressor = (
     'zst' => 'zstd -cd',
 );
 
+Getopt::Long::Configure( "no_auto_abbrev", "no_ignore_case" );
+
 GetOptions(
     "reject-score|r=f"      => \$reject_score,
     "junk-score|j=f"        => \$junk_score,
@@ -57,7 +59,7 @@ GetOptions(
     "end=s"                 => \$endTime,
     "num-logs|n=i"          => \$num_logs,
     "exclude-logs|x=i"      => \$exclude_logs,
-    "json|j"                => \$json,
+    "json"                  => \$json,
     "help|?"                => \$help,
     "man"                   => \$man
 ) or pod2usage(2);