From 44ef89b0ec27f59c117202255d6368858601c1cf Mon Sep 17 00:00:00 2001 From: Charlie Drage Date: Mon, 28 Aug 2017 11:25:04 -0400 Subject: [PATCH] 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 --- cmd/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/convert.go b/cmd/convert.go index 58fcbc9d..8d9859d4 100644 --- a/cmd/convert.go +++ b/cmd/convert.go @@ -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) }