{% macro renderSyntax(container, prefix) -%}
{% for name in container.names %}
Argument | Description | Value Type |
---|---|---|
<{$ option.name $}> |
{$ option.description | marked $}
{% if option.subcommands.length -%}
This option can take one of the following sub-commands:
|
{% if option.enum.length > 0 %}{$ renderValues(option.enum) $}{% else %}string{% endif %} |
Option | Description | Value Type | Default Value |
---|---|---|---|
{$ renderOptionName(option.name) $}
|
{% if option.deprecated %}
{% if option.deprecated === true %}
Deprecated {% else %} {$ ('**Deprecated:** ' + option.deprecated) | marked $} {% endif %} {% endif %} {$ option.description | marked $} {% if option.aliases.length %}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 %} |
{$ subcommand.name $}