X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FCLIHandler.pm;h=0863fdc64fbe2560b7a6275a060259f1c3186a18;hp=516d6320bf7d2f752991fc0aa49d4a877b71b474;hb=d90a2fd0fc916746e0757db3d2c74c616ab53474;hpb=58d9e664de3a1469d48aeccf469334f5e5737e63 diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm index 516d632..0863fdc 100644 --- a/src/PVE/CLIHandler.pm +++ b/src/PVE/CLIHandler.pm @@ -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;