From: Dietmar Maurer Date: Tue, 5 Jun 2018 08:37:41 +0000 (+0200) Subject: help.pm: fix generate usage string (hide password option) X-Git-Url: https://git.proxmox.com/?p=pve-client.git;a=commitdiff_plain;h=aa9d64b341dbae84492c705a9f79fefbcc9ee85a help.pm: fix generate usage string (hide password option) --- diff --git a/PVE/APIClient/Commands/help.pm b/PVE/APIClient/Commands/help.pm index 076305a..407af5e 100644 --- a/PVE/APIClient/Commands/help.pm +++ b/PVE/APIClient/Commands/help.pm @@ -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 {