You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/minikube/cmd/start_flags.go
+5-2
Original file line number
Diff line number
Diff line change
@@ -106,10 +106,13 @@ const (
106
106
deleteOnFailure="delete-on-failure"
107
107
forceSystemd="force-systemd"
108
108
kicBaseImage="base-image"
109
-
startOutput="output"
110
109
ports="ports"
111
110
)
112
111
112
+
var (
113
+
outputFormatstring
114
+
)
115
+
113
116
// initMinikubeFlags includes commandline flags for minikube.
114
117
funcinitMinikubeFlags() {
115
118
viper.SetEnvPrefix(minikubeEnvPrefix)
@@ -147,7 +150,7 @@ func initMinikubeFlags() {
147
150
startCmd.Flags().Bool(preload, true, "If set, download tarball of preloaded images if available to improve start time. Defaults to true.")
148
151
startCmd.Flags().Bool(deleteOnFailure, false, "If set, delete the current cluster if start fails and try again. Defaults to false.")
149
152
startCmd.Flags().Bool(forceSystemd, false, "If set, force the container runtime to use sytemd as cgroup manager. Currently available for docker and crio. Defaults to false.")
150
-
startCmd.Flags().StringP(startOutput, "o", "text", "Format to print stdout in. Options include: [text,json]")
153
+
startCmd.Flags().StringVarP(&outputFormat, "output", "o", "text", "Format to print stdout in. Options include: [text,json]")
151
154
}
152
155
153
156
// initKubernetesFlags inits the commandline flags for Kubernetes related options
0 commit comments