Skip to content

Commit

Permalink
Merge pull request #9097 from vinu2003/add-shortname-json-output
Browse files Browse the repository at this point in the history
start: Add -o shorthand option for --output
  • Loading branch information
tstromberg committed Aug 27, 2020
2 parents f4129a0 + 1541ca9 commit 214ff5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/minikube/cmd/start_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func initMinikubeFlags() {
startCmd.Flags().Bool(preload, true, "If set, download tarball of preloaded images if available to improve start time. Defaults to true.")
startCmd.Flags().Bool(deleteOnFailure, false, "If set, delete the current cluster if start fails and try again. Defaults to false.")
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.")
startCmd.Flags().String(startOutput, "text", "Format to print stdout in. Options include: [text,json]")
startCmd.Flags().StringP(startOutput, "o", "text", "Format to print stdout in. Options include: [text,json]")
}

// initKubernetesFlags inits the commandline flags for Kubernetes related options
Expand Down
2 changes: 1 addition & 1 deletion site/content/en/docs/commands/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ minikube start [flags]
--nfs-shares-root string Where to root the NFS Shares, defaults to /nfsshares (hyperkit driver only) (default "/nfsshares")
--no-vtx-check Disable checking for the availability of hardware virtualization before the vm is started (virtualbox driver only)
-n, --nodes int The number of nodes to spin up. Defaults to 1. (default 1)
--output string Format to print stdout in. Options include: [text,json] (default "text")
-o, --output string Format to print stdout in. Options include: [text,json] (default "text")
--preload If set, download tarball of preloaded images if available to improve start time. Defaults to true. (default true)
--registry-mirror strings Registry mirrors to pass to the Docker daemon
--service-cluster-ip-range string The CIDR to be used for service cluster IPs. (default "10.96.0.0/12")
Expand Down

0 comments on commit 214ff5b

Please sign in to comment.