cli: add links for cli flags

... and remove the column for shorthands.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson 2024-02-08 16:00:01 +01:00
parent 0b722c9aee
commit 75dc05388d
1 changed files with 11 additions and 3 deletions

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 }}