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=771d18f5c7be2055f0c9012f7f921f6d5f6337db 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;