X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FCLIHandler.pm;h=73e8ee632fc9cd204d5db0a2532e1acfa3226d28;hp=0c48335fb6308895be3993373a2584e803ff61ef;hb=3ef20687db9cda54dbb3a02ac3b911a87657efc0;hpb=367f04c5773ca7dbe93f63da819711d4b143e085 diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm index 0c48335..73e8ee6 100644 --- a/src/PVE/CLIHandler.pm +++ b/src/PVE/CLIHandler.pm @@ -48,12 +48,12 @@ my $complete_command_names = sub { }; __PACKAGE__->register_method ({ - name => 'help', + name => 'help', path => 'help', method => 'GET', description => "Get help about specified command.", parameters => { - additionalProperties => 0, + additionalProperties => 0, properties => { cmd => { description => "Command name", @@ -69,7 +69,7 @@ __PACKAGE__->register_method ({ }, }, returns => { type => 'null' }, - + code => sub { my ($param) = @_; @@ -83,7 +83,7 @@ __PACKAGE__->register_method ({ if (!$cmd) { if ($verbose) { print_usage_verbose(); - } else { + } else { print_usage_short(\*STDOUT); } return undef; @@ -310,7 +310,7 @@ sub verify_api { my $get_exe_name = sub { my ($class) = @_; - + my $name = $class; $name =~ s/^.*:://; $name =~ s/_/-/g;