diff --git a/aio/tools/transforms/templates/cli/lib/cli.html b/aio/tools/transforms/templates/cli/lib/cli.html index ba1b1ffd77..99dca56305 100644 --- a/aio/tools/transforms/templates/cli/lib/cli.html +++ b/aio/tools/transforms/templates/cli/lib/cli.html @@ -13,14 +13,15 @@
| Argument | -Description | +Argument | +Description | +Value Type |
|---|---|---|---|---|
<{$ option.name $}>{% if option.enum.length > 0 %}={$ renderValues(option.enum) $}{% endif %} |
+ <{$ option.name $}> |
{$ option.description | marked $} {% if option.subcommands.length -%} @@ -32,6 +33,7 @@ {%- endif %} | +{% if option.enum.length > 0 %}{$ renderValues(option.enum) $}{% else %}string{% endif %} |
| Option | -Description | -Option | +Description | +Value Type | +Default Value | + {% for option in options %}
|---|---|---|---|
- {$ renderOption(option.name, option.type, option.default, option.enum) $}
+ {$ renderOptionName(option.name) $}
|
{% if option.deprecated %}
@@ -64,9 +68,10 @@
{% endif %}
{% endif %}
{$ option.description | marked $}
- {% if option.default !== undefined %} Default: Aliases: {% for alias in option.aliases %}{$ renderOptionName(alias) $}{% if not loop.last %}, {% endif %}{% endfor %} {% endif %} |
+ {$ renderOptionValues(option.type, option.enum) $} |
+ {% if option.default !== undefined %}{$ option.default $}{% endif %} |