From 75dc05388db86681f0e3d0314e7a0f350ab1e9ca Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Thu, 8 Feb 2024 16:00:01 +0100 Subject: [PATCH] cli: add links for cli flags ... and remove the column for shorthands. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- layouts/_default/cli.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/layouts/_default/cli.html b/layouts/_default/cli.html index 7a1d126ac5..9ef5fac4b0 100644 --- a/layouts/_default/cli.html +++ b/layouts/_default/cli.html @@ -96,7 +96,6 @@ Option - Short Default Description @@ -104,8 +103,17 @@ {{ range where . "hidden" false }} - {{ with .option }}--{{ . }}{{ end }} - {{ with .shorthand }}-{{ . }}{{ end }} + {{ $short := .shorthand }} + {{ $long := .option }} + + {{ with .details_url }} + + {{ with $short }}-{{ . }}, {{end}}--{{ $long }} + + {{ else }} + {{ with $short }}-{{ . }}, {{end}}--{{ $long }} + {{ end }} + {{ $skipDefault := `[],map[],false,0,0s,default,'',""` }} {{ with .default_value }}