1
<#macro expectedValues option>
2
<#list ctx.options.getOption(option).expectedValues as expectedValue>
7
<#macro list options buildIcon=true anchor=true>
8
[cols="12a,4",role="options"]
12
<#list options as option>
14
[.options-key]#``${option.key}``# <#if buildIcon><#if option.build>[.none]#icon:tools[role=options-build]#</#if></#if>
16
[.options-description]#${option.description}#
18
[<#if anchor>#option-extended-${option.key},</#if>role="options-extended"]
20
<#if option.descriptionExtended?has_content>[.options-description-extended]#${option.descriptionExtended!}#</#if>
22
*CLI:* `${option.keyCli}` +
23
*Env:* `${option.keyEnv}`
26
<#if option.deprecated?has_content>
27
<#-- Either mark the whole option as deprecated, or just selected values -->
28
<#if !option.deprecated.deprecatedValues?has_content>
31
${option.deprecated.note!}<#if option.deprecated.newOptionsKeys?has_content><#if option.deprecated.note?has_content> </#if>Use: <#list option.deprecated.newOptionsKeys as key>`+${key}+`<#if key?has_next>, </#if></#list>.</#if>
32
<#if option.deprecated.deprecatedValues?has_content>
33
*Deprecated values: <#list option.deprecated.deprecatedValues as value>`+${value}+`<#if value?has_next>, </#if></#list>*
37
|<#if option.expectedValues?has_content>
38
<#list option.expectedValues as value>`+${value!}+`<#if option.defaultValue?has_content && value = option.defaultValue> (default)</#if><#if value?has_next>, </#if></#list>
40
<#if option.defaultValue?has_content>[.options-default]#`+${option.defaultValue!}+`# (default)</#if><#if option.type?has_content && option.defaultValue?has_content> or </#if><#if option.type?has_content && !option.expectedValues?has_content>any `+${option.type!}+`</#if>