From 27cda90084bb85e04e53858219554355a3c40189 Mon Sep 17 00:00:00 2001 From: left-try Date: Thu, 14 Nov 2024 09:51:58 +0600 Subject: [Minor] Small clean up --- lualib/rspamadm/ratelimit.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lualib') diff --git a/lualib/rspamadm/ratelimit.lua b/lualib/rspamadm/ratelimit.lua index 524f8853d..c74a1a880 100644 --- a/lualib/rspamadm/ratelimit.lua +++ b/lualib/rspamadm/ratelimit.lua @@ -21,9 +21,8 @@ track_limits:option "-q --quantity" local upgrade_bucket = parser:command 'upgrade_bucket' :description 'Upgrade certain bucket' -upgrade_bucket:option "-p --prefix" +upgrade_bucket:argument "prefix" :description("Prefix of bucket to operate with") - :argname("") :args(1) upgrade_bucket:option "-b --burst" :description("Burst to set") @@ -49,9 +48,9 @@ upgrade_bucket:option "-R --dynamic_rate" local unblock_bucket = parser:command 'unblock_bucket' :description 'Unblock certain bucket' -unblock_bucket:option "-p --prefix" +unblock_bucket:argument "prefix" :description("Prefix of bucket to operate with") - :argname("") + :args(1) local unblock_buckets = parser:command 'unblock_buckets' :description("Unblock provided number of buckets(default: 1)") -- cgit v1.2.3