X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FRESTHandler.pm;h=6fc69ad3c3af59567ee8959f5040e2d93e795c04;hp=4b67c614f336c1fc52c1a70d0234847163aa6b95;hb=abc1afd874c5a1ea126dbcf5013166512264e6f1;hpb=25d9bda94127b1a91181cd80bb9948093dea389b diff --git a/src/PVE/RESTHandler.pm b/src/PVE/RESTHandler.pm index 4b67c61..6fc69ad 100644 --- a/src/PVE/RESTHandler.pm +++ b/src/PVE/RESTHandler.pm @@ -417,7 +417,7 @@ sub handle { # $display_name: for example "-$name" of "<$name>", pass undef to use "$name:" # $phash: json schema property hash # $format: 'asciidoc', 'short', 'long' or 'full' -# $style: 'config', 'arg' or 'fixed' +# $style: 'config', 'config-sub', 'arg' or 'fixed' my $get_property_description = sub { my ($name, $style, $phash, $format, $hidepw, $fileparams) = @_; @@ -434,7 +434,7 @@ my $get_property_description = sub { chomp $descr; - my $type = PVE::JSONSchema::schema_get_type_text($phash); + my $type = PVE::JSONSchema::schema_get_type_text($phash, $style); if ($hidepw && $name eq 'password') { $type = ''; @@ -458,7 +458,7 @@ my $get_property_description = sub { } elsif ($style eq 'arg') { $res .= "`-$name` "; } elsif ($style eq 'fixed') { - $res .= "`<$name>` "; + $res .= "`<$name>`: "; } else { die "unknown style '$style'"; }