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 076305a..407af5e 100644 (file)
@@ -45,7 +45,7 @@ __PACKAGE__->register_method ({
 
                    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 {