From 5c37bbb9f87f97dc81e4cb3b16f283a1dc451368 Mon Sep 17 00:00:00 2001 From: Roberto Hidalgo Date: Thu, 23 Mar 2023 00:14:43 -0600 Subject: [PATCH] reoganize help template additionalhelp --- internal/constants/help.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/constants/help.md b/internal/constants/help.md index 69e36bf..1bec266 100644 --- a/internal/constants/help.md +++ b/internal/constants/help.md @@ -1,6 +1,6 @@ {{- if not .HTMLOutput }} # {{ .Spec.FullName }}{{if eq .Command.Name "help"}} help{{end}} -{{- else }} +{{- else -}} --- description: {{ .Command.Short }} --- @@ -16,15 +16,18 @@ description: {{ .Command.Short }} ## Description {{ .Spec.Description }} -{{ end -}} {{- if .Spec.HasAdditionalHelp }} {{ .Spec.AdditionalHelp .HTMLOutput }} {{ end -}} +{{ end -}} {{- if (and (not .Spec.IsRoot) .Spec.Description) }} ## Description {{ if not (eq .Command.Long "") }}{{ .Command.Long }}{{ else }}{{ .Spec.Description }}{{end}} +{{- if .Spec.HasAdditionalHelp }} +{{ .Spec.AdditionalHelp .HTMLOutput }} +{{ end -}} {{ end }}