diff --git a/aio/tools/transforms/templates/cli/lib/cli.html b/aio/tools/transforms/templates/cli/lib/cli.html index 7928206873..a190956c74 100644 --- a/aio/tools/transforms/templates/cli/lib/cli.html +++ b/aio/tools/transforms/templates/cli/lib/cli.html @@ -56,7 +56,14 @@ {$ renderOption(option.name, option.type, option.default, option.enum) $} - {% if option.deprecated !== undefined and option.deprecated !== false %} {% if option.deprecated !== true %} {$ option.deprecated | marked $} {% endif %}{% endif %} + {% if option.deprecated %} + {% if option.deprecated !== true %} + {$ ('**Deprecated:** ' + option.deprecated) | marked $} + {% endif %} + {% if option.deprecated === true %} + {$ ('**Deprecated**') | marked $} + {% endif %} + {% endif %} {$ option.description | marked $} {% if option.default !== undefined %}

Default: {$ option.default $}

{% endif %} {% if option.aliases.length %}

Aliases: {% for alias in option.aliases %}{$ renderOptionName(alias) $}{% if not loop.last %}, {% endif %}{% endfor %}

{% endif %}