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