diff --git a/src/cmd/tools/helm.go b/src/cmd/tools/helm.go index 2a3b301595..14c150acf5 100644 --- a/src/cmd/tools/helm.go +++ b/src/cmd/tools/helm.go @@ -15,13 +15,13 @@ import ( func init() { actionConfig := new(action.Configuration) - // Since helm needs args passed into it, check if we are processing things on a command with fewer args - if len(os.Args) < 3 { - return + // Truncate Helm's arguments so that it thinks its all alone + helmArgs := []string{} + if len(os.Args) > 2 { + helmArgs = os.Args[3:] } - // The inclusion of Helm in this manner should be reconsidered once https://github.com/helm/helm/issues/12122 is resolved - helmCmd, _ := helm.NewRootCmd(actionConfig, os.Stdout, os.Args[3:]) + helmCmd, _ := helm.NewRootCmd(actionConfig, os.Stdout, helmArgs) helmCmd.Short = lang.CmdToolsHelmShort helmCmd.Long = lang.CmdToolsHelmLong