pmd/docs/_includes/custom/cli_option_row.html

18 lines
1.0 KiB
HTML
Raw Normal View History

2018-05-25 03:02:37 +02:00
<!-- Row of the CLI reference table, describing an option -->
<!-- Argument summary: -->
<!-- options: comma separated list of aliases for the option.-->
<!-- option_arg: optional name for the argument of the option, eg 'arg', will be formatted eg to '<arg>'-->
<!-- description: description, you can use "some" inline markdown -->
<!-- required: whether the option is required, if specified, whatever the value, it's considered required -->
<!-- languages: languages to which the option applies -->
<!-- default: default value -->
{% assign arg = {{ include.option_arg | prepend: "&nbsp;<" | append: ">" | escape_once | keep_if: include.option_arg }} %}
{% capture required_label %}{% if include.required %}<span class="label label-primary">Required</span> {% endif %}{% endcapture %}
<tr>
<td><code>{{ include.options | split: ',' | mappend: arg | join: "</code><br/><code>" }}</code></td>
2018-05-25 03:16:01 +02:00
<td>{{ required_label }}{{ include.description | render_markdown }}</td>
2018-05-25 03:02:37 +02:00
<td><code>{{ include.default }}</code></td>
<td>{{ include.languages }}</td>
</tr>