CLIHandler.pm: fix command line completion for simple commands

You can simply test behavior using 'qmrestore' ...

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer 2018-06-12 10:57:45 +02:00 committed by Thomas Lamprecht
parent 1e5ecf7bf8
commit 6142051558

View File

@ -370,7 +370,6 @@ my $print_bash_completion = sub {
};
# positional arguments
$pos++ if $simple_cmd;
if ($pos < scalar(@$arg_param)) {
my $pname = $arg_param->[$pos];
&$print_parameter_completion($pname);