Skip to content

Commit

Permalink
Merge pull request #1718 from darkowlzz/1683-delete-machine-profile
Browse files Browse the repository at this point in the history
cmd/minikube: delete accept no arguments
  • Loading branch information
r2d4 authored Jul 24, 2017
2 parents 6eeda22 + 17ba029 commit 5e5a0fb
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 5e5a0fb

Please sign in to comment.