diff --git a/layouts/_default/cli.html b/layouts/_default/cli.html index d7dc614d10..e9e4fbc8e1 100644 --- a/layouts/_default/cli.html +++ b/layouts/_default/cli.html @@ -85,7 +85,12 @@ {{ with .option }}--{{ . }}{{ end }} {{ with .shorthand }}-{{ . }}{{ end }} - {{ with .default_value }}{{ . }}{{ end }} + {{ $skipDefault := `[],map[],false,0,0s,default,'',""` }} + + {{ with .default_value }} + {{ cond (in $skipDefault .) "" (printf "%s" . | safeHTML) }} + {{ end }} + {{ with .min_api_version }} {{ partial "components/badge.html" (dict "color" "blue" "content" (printf "API %s+" .)) }}