print_usage_short: do not group subcommands

For examply, do not group 'qm guest' usage.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer 2018-07-31 11:55:42 +02:00 committed by Thomas Lamprecht
parent 7b2ba123b4
commit c701c5659e

View File

@ -337,7 +337,7 @@ sub print_usage_short {
print $fd "ERROR: $msg\n" if $msg;
print $fd "USAGE: $exename <COMMAND> [ARGS] [OPTIONS]\n\n";
print {$fd} generate_usage_str('short', $cmd, ' ' x 7, "\n", sub {
print {$fd} generate_usage_str('short', $cmd, ' ' x 7, $cmd ? '' : "\n", sub {
my ($h) = @_;
return sort {
if (ref($h->{$a}) eq 'ARRAY' && ref($h->{$b}) eq 'ARRAY') {