fix help ami

This commit is contained in:
garnier-quentin 2020-01-17 15:33:14 +01:00
parent 69fcecf7cb
commit 731a279b80
1 changed files with 23 additions and 25 deletions

View File

@ -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 {