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

{% if command.meta_format('doc', element='body') %}
{{ command.meta_format('doc', element='body') }}
{% endif %}

{% if options %}
options:
{% for name, option in options|dictsort %}
  {{ option.flags|join(', ') }} {{ option.help }}
{% endfor %}
{% endif %}

{% if subcommands %}
subcommands:
{% for name, subcommand in subcommands|dictsort %}
    {{ name }} - {{ subcommand.meta_format('doc', element='head') }}
{% endfor %}
{% endif %}
