Merge pull request #19350 from dvdksn/cli-flag-links

cli: add links for cli flags
This commit is contained in:
David Karlsson
2024-02-08 16:10:47 +01:00
committed by GitHub

View File

@@ -96,7 +96,6 @@
<thead>
<tr>
<th>Option</th>
<th>Short</th>
<th>Default</th>
<th>Description</th>
</tr>
@@ -104,8 +103,17 @@
<tbody>
{{ range where . "hidden" false }}
<tr>
<td>{{ with .option }}<code>--{{ . }}</code>{{ end }}</td>
<td>{{ with .shorthand }}<code>-{{ . }}</code>{{ end }}</td>
{{ $short := .shorthand }}
{{ $long := .option }}
<td>
{{ with .details_url }}
<a class="link" href="{{ . }}">
<code>{{ with $short }}-{{ . }}, {{end}}--{{ $long }}</code>
</a>
{{ else }}
<code>{{ with $short }}-{{ . }}, {{end}}--{{ $long }}</code>
{{ end }}
</td>
{{ $skipDefault := `[],map[],false,0,0s,default,'',""` }}
<td>
{{ with .default_value }}