build(docs-infra): display CLI positional option enum values (#31529)

Previously we on;ly displayed enum values for named options.
Now positional options get equal justice.

Fixes https://github.com/angular/angular-cli/issues/15040

PR Close #31529
This commit is contained in:
Pete Bacon Darwin 2019-07-12 16:39:52 +01:00 committed by Matias Niemelä
parent 3a09d01c63
commit b65e11e3c3
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@
<tbody> <tbody>
{% for option in arguments %} {% for option in arguments %}
<tr class="cli-option"> <tr class="cli-option">
<td><code class="no-auto-link">&lt;<var>{$ option.name $}</var>&gt;</code></td> <td><code class="cli-option-syntax no-auto-link">&lt;<var>{$ option.name $}</var>&gt;{% if option.enum.length > 0 %}={$ renderValues(option.enum) $}{% endif %}</code></td>
<td> <td>
{$ option.description | marked $} {$ option.description | marked $}
{% if option.subcommands.length -%} {% if option.subcommands.length -%}