prettify options
This commit is contained in:
parent
2b3ca0c834
commit
2a158f9d00
|
@ -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' },
|
||||||
|
|
|
@ -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' },
|
||||||
|
|
Loading…
Reference in New Issue