Skip to content

Commit

Permalink
cmd/minikube: delete accept no arguments
Browse files Browse the repository at this point in the history
This changeset makes the delete command to error out if any argument is passed
to it.
  • Loading branch information
darkowlzz committed Jul 22, 2017
1 parent f32754f commit 17ba029
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/minikube/cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 17ba029

Please sign in to comment.