fix help ami
This commit is contained in:
parent
69fcecf7cb
commit
731a279b80
|
@ -40,23 +40,21 @@ sub new {
|
|||
}
|
||||
|
||||
if (!defined($options{noptions})) {
|
||||
$options{options}->add_options(arguments =>
|
||||
{
|
||||
"ami-hostname:s@" => { name => 'ami_hostname' },
|
||||
"ami-port:s@" => { name => 'ami_port' },
|
||||
"ami-username:s@" => { name => 'ami_username' },
|
||||
"ami-password:s@" => { name => 'ami_password' },
|
||||
"timeout:s@" => { name => 'timeout' },
|
||||
});
|
||||
$options{options}->add_options(arguments => {
|
||||
'ami-hostname:s@' => { name => 'ami_hostname' },
|
||||
'ami-port:s@' => { name => 'ami_port' },
|
||||
'ami-username:s@' => { name => 'ami_username' },
|
||||
'ami-password:s@' => { name => 'ami_password' },
|
||||
'timeout:s@' => { name => 'timeout' },
|
||||
});
|
||||
}
|
||||
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
|
||||
$options{options}->add_help(package => __PACKAGE__, sections => 'AMI API OPTIONS', once => 1);
|
||||
|
||||
$self->{output} = $options{output};
|
||||
$self->{mode} = $options{mode};
|
||||
$self->{cnx_ami} = undef;
|
||||
|
||||
return $self;
|
||||
|
||||
}
|
||||
|
||||
sub set_options {
|
||||
|
|
Loading…
Reference in New Issue