Skip to content

Commit cc6c374

Browse files
self-sasimedyagh
authored andcommitted
replace deprecated pflag ParseErrorsWhitelist with ParseErrorsAllowlist
1 parent 93bf47f commit cc6c374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/minikube/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func logFileName(dir string, logIdx int64) string {
192192
func setFlags(parse bool) {
193193
// parse flags beyond subcommand - get around go flag 'limitations':
194194
// "Flag parsing stops just before the first non-flag argument" (ref: https://pkg.go.dev/flag#hdr-Command_line_flag_syntax)
195-
pflag.CommandLine.ParseErrorsWhitelist.UnknownFlags = true
195+
pflag.CommandLine.ParseErrorsAllowlist.UnknownFlags = true
196196
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
197197
// avoid 'pflag: help requested' error, as help will be defined later by cobra cmd.Execute()
198198
pflag.BoolP("help", "h", false, "")

0 commit comments

Comments
 (0)