prettify options

This commit is contained in:
garnier-quentin 2019-04-05 17:16:07 +02:00
parent 2b3ca0c834
commit 2a158f9d00
2 changed files with 11 additions and 13 deletions

View File

@ -86,8 +86,7 @@ sub new {
bless $self, $class; bless $self, $class;
$self->{version} = '1.0'; $self->{version} = '1.0';
$options{options}->add_options(arguments => $options{options}->add_options(arguments => {
{
"name" => { name => 'use_name' }, "name" => { name => 'use_name' },
"filesystem:s" => { name => 'filesystem' }, "filesystem:s" => { name => 'filesystem' },
"regexp" => { name => 'use_regexp' }, "regexp" => { name => 'use_regexp' },

View File

@ -78,8 +78,7 @@ sub new {
bless $self, $class; bless $self, $class;
$self->{version} = '1.0'; $self->{version} = '1.0';
$options{options}->add_options(arguments => $options{options}->add_options(arguments => {
{
"unknown-status:s" => { name => 'unknown_status', default => '' }, "unknown-status:s" => { name => 'unknown_status', default => '' },
"warning-status:s" => { name => 'warning_status', default => '%{state} =~ /initializing|recovering/i' }, "warning-status:s" => { name => 'warning_status', default => '%{state} =~ /initializing|recovering/i' },
"critical-status:s" => { name => 'critical_status', default => '%{state} =~ /disabledNeedsResync|uninitialized/i' }, "critical-status:s" => { name => 'critical_status', default => '%{state} =~ /disabledNeedsResync|uninitialized/i' },