We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ffaa39a + 7d99c66 commit ac898f8Copy full SHA for ac898f8
cmd/minikube/main.go
@@ -127,6 +127,8 @@ func setFlags() {
127
// "Flag parsing stops just before the first non-flag argument" (ref: https://pkg.go.dev/flag#hdr-Command_line_flag_syntax)
128
pflag.CommandLine.ParseErrorsWhitelist.UnknownFlags = true
129
pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
130
+ // avoid 'pflag: help requested' error, as help will be defined later by cobra cmd.Execute()
131
+ pflag.BoolP("help", "h", false, "")
132
pflag.Parse()
133
134
// set default flag value for logtostderr and alsologtostderr but don't override user's preferences
0 commit comments