Fixes output of help template

Fixes the issue of the help output not ouputting all commands due to the
wrong function being used within spf13/cobra.

Closes https://github.com/spf13/cobra/issues/512
Closes https://github.com/kubernetes/kompose/issues/744
This commit is contained in:
Charlie Drage 2017-08-28 11:25:04 -04:00
parent 59c36d92be
commit 44ef89b0ec

View File

@ -169,7 +169,7 @@ Additional help topics:{{range .Commands}}{{if .IsHelpCommand}}
Use "{{.CommandPath}} [command] --help" for more information about a command.{{end}}
`
// Set the help template + add the command to root
convertCmd.SetHelpTemplate(customHelp)
convertCmd.SetUsageTemplate(customHelp)
RootCmd.AddCommand(convertCmd)
}