Add test case

This commit is contained in:
Naveen Gogineni
2022-09-30 08:23:18 -04:00
parent 2da6e68555
commit 6504da449b
4 changed files with 89 additions and 6 deletions

View File

@@ -54,10 +54,10 @@ DESCRIPTION:
OPTIONS:{{range .VisibleFlagCategories}}
{{if .Name}}{{.Name}}
{{end}}{{range .Flags}}{{.}}{{end}}{{end}}{{else}}{{if .VisibleFlags}}
OPTIONS:{{range .VisibleFlags}}
{{.}}{{end}}{{end}}{{end}}
{{end}}{{range .Flags}}{{.}}
{{end}}{{end}}{{else}}{{if .VisibleFlags}}
OPTIONS:{{range $index, $option := .VisibleFlags}}{{if $index}}{{end}}
{{wrap $option.String 6}}{{end}}{{end}}{{end}}
`
// SubcommandHelpTemplate is the text template for the subcommand help topic.