mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-17 14:11:45 +00:00
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:
parent
7b2ba123b4
commit
c701c5659e
@ -337,7 +337,7 @@ sub print_usage_short {
|
|||||||
print $fd "ERROR: $msg\n" if $msg;
|
print $fd "ERROR: $msg\n" if $msg;
|
||||||
print $fd "USAGE: $exename <COMMAND> [ARGS] [OPTIONS]\n\n";
|
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) = @_;
|
my ($h) = @_;
|
||||||
return sort {
|
return sort {
|
||||||
if (ref($h->{$a}) eq 'ARRAY' && ref($h->{$b}) eq 'ARRAY') {
|
if (ref($h->{$a}) eq 'ARRAY' && ref($h->{$b}) eq 'ARRAY') {
|
||||||
|
Loading…
Reference in New Issue
Block a user