{{ "\x1b[1m" }}NAME{{ "\x1b[m" }}
    {{ name }} - {{ command.meta_format('doc', element='head') }}

{{ command.meta_format('usage') }}

{% if command.meta_format('doc', element='body') %}
{{ "\x1b[1m" }}DESCRIPTION{{ "\x1b[m" }}
{{ command.meta_format('doc', element='body')|indent(4, True) }}
{% endif %}

{% if options %}
{{ "\x1b[1m" }}OPTIONS{{ "\x1b[m" }}
{% for name, option in options|dictsort %}
    {{ option.flags|join(', ') }}
        {{ option.help }}
{% endfor %}
{% endif %}

{% if subcommands %}
{{ "\x1b[1m" }}SUBCOMMANDS{{ "\x1b[m" }}
{% for name, subcommand in subcommands|dictsort %}
    {{ name }} - {{ subcommand.meta_format('doc', element='head') }}
{% endfor %}
{% endif %}
