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
commit 38639eced1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 3 deletions

View File

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