aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorJérôme Lebleu <jeromelebleu@users.noreply.github.com>2025-03-02 13:57:10 +0100
committerJérôme Lebleu <jeromelebleu@users.noreply.github.com>2025-03-02 13:57:10 +0100
commitc6353cf5f63722b93c33c89a01c84988e61df41c (patch)
treee85ce2243cd11ab89c9514e7ede53b8cc72a561d /utils
parent8ef1eddc7513e903b019a7b793fbba0155502141 (diff)
downloadrspamd-c6353cf5f63722b93c33c89a01c84988e61df41c.tar.gz
rspamd-c6353cf5f63722b93c33c89a01c84988e61df41c.zip
Prevent option duplicates in rspamd_stats.pl
Diffstat (limited to 'utils')
-rwxr-xr-xutils/rspamd_stats.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/rspamd_stats.pl b/utils/rspamd_stats.pl
index 9c5f2acb0..1d060e4a5 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);