forked from LaconicNetwork/kompose
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:
parent
59c36d92be
commit
44ef89b0ec
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user