From: Jérôme Lebleu Date: Sun, 2 Mar 2025 12:57:10 +0000 (+0100) Subject: Prevent option duplicates in rspamd_stats.pl X-Git-Tag: 3.11.1~10^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5365%2Fhead;p=thirdparty%2Frspamd.git Prevent option duplicates in rspamd_stats.pl --- diff --git a/utils/rspamd_stats.pl b/utils/rspamd_stats.pl index 9c5f2acb07..1d060e4a53 100755 --- a/utils/rspamd_stats.pl +++ b/utils/rspamd_stats.pl @@ -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);