]> git.proxmox.com Git - pmg-api.git/commitdiff
pmgsh: fix 'help' command
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 9 Mar 2020 09:24:46 +0000 (10:24 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 9 Mar 2020 11:05:18 +0000 (12:05 +0100)
we changed the RESTEnvironment a while ago to not have the 'hidepw'
parameter anymore, so remove it in pmgsh as well

this fixes executions of 'pmgsh help /path'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/bin/pmgsh

index b7d1558382da269366379975ddfb384734f1b603..114b98aecb3d0dc0a03f74252505db08cab2ab5a 100755 (executable)
@@ -339,7 +339,7 @@ sub print_help {
        my $cmd = reverse_map_cmd($method);
 
        print $mi->{handler}->usage_str($mi->{info}->{name}, "$cmd $path", [], $mi->{uri_param}, 
-                                       $opts->{verbose} ? 'full' : 'short', 1);
+                                       $opts->{verbose} ? 'full' : 'short');
        print "\n\n" if $opts->{verbose};
     }