]> git.proxmox.com Git - pve-client.git/commitdiff
help.pm: fix generate usage string (hide password option)
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 5 Jun 2018 08:37:41 +0000 (10:37 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 5 Jun 2018 08:37:41 +0000 (10:37 +0200)
PVE/APIClient/Commands/help.pm

index 076305aa03d415fc92f48519b24eda135121d79c..407af5ed0c4ed8de3964fe9a2c2508554cb050c5 100644 (file)
@@ -45,7 +45,7 @@ __PACKAGE__->register_method ({
 
                    if (ref($def->{$cmd}) eq 'ARRAY') {
                        my ($class, $name, $arg_param, $fixed_param) = @{$def->{$cmd}};
 
                    if (ref($def->{$cmd}) eq 'ARRAY') {
                        my ($class, $name, $arg_param, $fixed_param) = @{$def->{$cmd}};
-                       $text .= $class->usage_str($name, "pveclient $subcommand $name", $arg_param, $fixed_param, $format);
+                       $text .= $class->usage_str($name, "pveclient $subcommand $name", $arg_param, $fixed_param, $format, $class->can('read_password'));
                    }
                }
            } else {
                    }
                }
            } else {