mirror of
https://github.com/mastodon/mastodon
synced 2024-11-27 14:28:24 +09:00
Reference IpBlock.severities
keys from CLI option check (#32291)
This commit is contained in:
parent
d20a899bb9
commit
3cf2d35c49
@ -5,7 +5,7 @@ require_relative 'base'
|
|||||||
|
|
||||||
module Mastodon::CLI
|
module Mastodon::CLI
|
||||||
class IpBlocks < Base
|
class IpBlocks < Base
|
||||||
option :severity, required: true, enum: %w(no_access sign_up_requires_approval sign_up_block), desc: 'Severity of the block'
|
option :severity, required: true, enum: IpBlock.severities.keys, desc: 'Severity of the block'
|
||||||
option :comment, aliases: [:c], desc: 'Optional comment'
|
option :comment, aliases: [:c], desc: 'Optional comment'
|
||||||
option :duration, aliases: [:d], type: :numeric, desc: 'Duration of the block in seconds'
|
option :duration, aliases: [:d], type: :numeric, desc: 'Duration of the block in seconds'
|
||||||
option :force, type: :boolean, aliases: [:f], desc: 'Overwrite existing blocks'
|
option :force, type: :boolean, aliases: [:f], desc: 'Overwrite existing blocks'
|
||||||
|
Loading…
Reference in New Issue
Block a user