mirror of
git://git.proxmox.com/git/pve-common.git
synced 2025-01-26 22:03:33 +03:00
print_bash_completion: handle special case passing $arg_param as string
This commit is contained in:
parent
771d18f5c7
commit
d90a2fd0fc
@ -235,6 +235,8 @@ my $print_bash_completion = sub {
|
||||
$arg_param //= [];
|
||||
$uri_param //= {};
|
||||
|
||||
$arg_param = [ $arg_param ] if !ref($arg_param);
|
||||
|
||||
map { $skip_param->{$_} = 1; } @$arg_param;
|
||||
map { $skip_param->{$_} = 1; } keys %$uri_param;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user