From 17ba029cbaa4f5f35cdbcb47a779014f0c40fd85 Mon Sep 17 00:00:00 2001 From: Sunny Date: Thu, 20 Jul 2017 06:32:25 +0530 Subject: [PATCH] cmd/minikube: delete accept no arguments This changeset makes the delete command to error out if any argument is passed to it. --- cmd/minikube/cmd/delete.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/minikube/cmd/delete.go b/cmd/minikube/cmd/delete.go index a999b5c3dac7..49036c544130 100644 --- a/cmd/minikube/cmd/delete.go +++ b/cmd/minikube/cmd/delete.go @@ -33,6 +33,11 @@ var deleteCmd = &cobra.Command{ Long: `Deletes a local kubernetes cluster. This command deletes the VM, and removes all associated files.`, Run: func(cmd *cobra.Command, args []string) { + if len(args) > 0 { + fmt.Fprintln(os.Stderr, "usage: minikube delete") + os.Exit(1) + } + fmt.Println("Deleting local Kubernetes cluster...") api, err := machine.NewAPIClient() if err != nil {