5
0
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:
Dietmar Maurer 2015-09-19 10:39:20 +02:00
parent 771d18f5c7
commit d90a2fd0fc

View File

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