From: Dietmar Maurer Date: Tue, 12 Jun 2018 08:57:45 +0000 (+0200) Subject: CLIHandler.pm: fix command line completion for simple commands X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=6142051558db2115ad4122c46ca9f9dd76246efc;ds=sidebyside CLIHandler.pm: fix command line completion for simple commands You can simply test behavior using 'qmrestore' ... Signed-off-by: Dietmar Maurer --- diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm index 8c911b2..316d29d 100644 --- a/src/PVE/CLIHandler.pm +++ b/src/PVE/CLIHandler.pm @@ -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);