]> git.proxmox.com Git - pve-client.git/blobdiff - PVE/APIClient/Commands/help.pm
Add a simple implementation of list
[pve-client.git] / PVE / APIClient / Commands / help.pm
index 076305aa03d415fc92f48519b24eda135121d79c..81d4d4a963a485e65973e50401fe90e44e16ec7e 100644 (file)
@@ -4,6 +4,7 @@ use strict;
 use warnings;
 
 use PVE::APIClient::Commands::help;
+use PVE::APIClient::Commands::list;
 use PVE::APIClient::Commands::lxc;
 use PVE::APIClient::Commands::remote;
 
@@ -45,7 +46,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 {
@@ -55,6 +56,7 @@ __PACKAGE__->register_method ({
        };
 
        $assemble_usage_string->('help', $PVE::APIClient::Commands::help::cmddef);
+       $assemble_usage_string->('list', $PVE::APIClient::Commands::list::cmddef);
        $assemble_usage_string->('lxc', $PVE::APIClient::Commands::lxc::cmddef);
        $assemble_usage_string->('remote', $PVE::APIClient::Commands::remote::cmddef);