mirror of
https://git.proxmox.com/git/pve-common
synced 2025-04-28 15:57:11 +00:00
allow to pass single '-' as argument.
This commit is contained in:
parent
776fbfa8bd
commit
b749019d13
@ -486,7 +486,7 @@ sub cli_handler {
|
||||
if ($arg_param) {
|
||||
if (ref($arg_param)) {
|
||||
foreach my $p (@$arg_param) {
|
||||
$param->{$p} = shift @$args if $args->[0] && $args->[0] !~ m/^-/;
|
||||
$param->{$p} = shift @$args if $args->[0] && $args->[0] !~ m/^-\S/;
|
||||
}
|
||||
} else {
|
||||
my $pd = $info->{parameters}->{properties}->{$arg_param};
|
||||
|
Loading…
Reference in New Issue
Block a user