Merge pull request #6076 from ian-howell/fix/command-line-parsing

Fix a parsing issue with command line arguments
pull/6173/head
Martin Hickey 5 years ago committed by GitHub
commit 6bf5ef83c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -122,6 +122,11 @@ func newRootCmd(actionConfig *action.Configuration, out io.Writer, args []string
settings.AddFlags(flags)
// We can safely ignore any errors that flags.Parse encounters since
// those errors will be caught later during the call to cmd.Execution.
// This call is required to gather configuration information prior to
// execution.
flags.ParseErrorsWhitelist.UnknownFlags = true
flags.Parse(args)
// set defaults from environment

Loading…
Cancel
Save