{% macro renderSyntax(container, prefix) -%}
{% for name in container.names %}
参数 | 说明 |
---|---|
<{$ option.name $}> |
{$ option.description | marked $}
{% if option.subcommands.length -%}
该选项可以接受下列子命令之一:
|
选项 | 说明 |
---|---|
{$ renderOption(option.name, option.type, option.default, option.enum) $}
|
{% if option.deprecated %}
{% if option.deprecated === true %}
Deprecated {% else %} {$ ('**Deprecated:** ' + option.deprecated) | marked $} {% endif %} {% endif %} {$ option.description | marked $} {% if option.default !== undefined %}默认值: 别名: {% for alias in option.aliases %}{$ renderOptionName(alias) $}{% if not loop.last %}, {% endif %}{% endfor %} {% endif %} |
{$ subcommand.name $}