[pve-devel] applied: [pve-common] print_usage_short: do not group subcommands
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Aug 1 08:58:30 CEST 2018
Am 07/31/2018 um 11:55 AM schrieb Dietmar Maurer:
> For examply, do not group 'qm guest' usage.
>
> Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
> ---
> src/PVE/CLIHandler.pm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/PVE/CLIHandler.pm b/src/PVE/CLIHandler.pm
> index 13904e2..2107108 100644
> --- a/src/PVE/CLIHandler.pm
> +++ b/src/PVE/CLIHandler.pm
> @@ -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') {
>
applied
More information about the pve-devel
mailing list