diff --git a/cmd/minikube/cmd/delete.go b/cmd/minikube/cmd/delete.go index 33a31488c1..6b50e46316 100644 --- a/cmd/minikube/cmd/delete.go +++ b/cmd/minikube/cmd/delete.go @@ -91,7 +91,6 @@ func init() { if err := viper.BindPFlags(deleteCmd.Flags()); err != nil { exit.Error(reason.InternalBindFlags, "unable to bind flags", err) } - RootCmd.AddCommand(deleteCmd) } // shotgun cleanup to delete orphaned docker container data diff --git a/cmd/minikube/cmd/stop.go b/cmd/minikube/cmd/stop.go index 72dbce79a0..dc595cff91 100644 --- a/cmd/minikube/cmd/stop.go +++ b/cmd/minikube/cmd/stop.go @@ -60,8 +60,6 @@ func init() { if err := viper.GetViper().BindPFlags(stopCmd.Flags()); err != nil { exit.Error(reason.InternalFlagsBind, "unable to bind flags", err) } - - RootCmd.AddCommand(stopCmd) } // runStop handles the executes the flow of "minikube stop"