diff --git a/aio/tools/transforms/templates/cli/lib/cli.html b/aio/tools/transforms/templates/cli/lib/cli.html index 2658791fa3..b95313895f 100644 --- a/aio/tools/transforms/templates/cli/lib/cli.html +++ b/aio/tools/transforms/templates/cli/lib/cli.html @@ -72,7 +72,8 @@ {%- endmacro %} {%- macro renderValues(values, default) -%} -{$ values.join('|') $} +{%- set valString = values.join('|') -%} +{%- if valString.length > 15 %}
{% endif %}{$ valString $} {%- endmacro -%} {%- macro renderOption(name, type, default, values) -%} @@ -81,7 +82,7 @@ {%- elif values.length -%} {$ prefix $}{$ name $}={$ renderValues(values, default) $} {%- elif type === 'string' -%} -{$ name $} +{$ prefix $}{$ name $}={% if name.length > 15 %}
{% endif %}{$ name $} {%- else -%} {$ prefix $}{$ name $} {%- endif -%}