diff --git a/pkg/app/destroy.go b/pkg/app/destroy.go index 4325604e4..c366728da 100644 --- a/pkg/app/destroy.go +++ b/pkg/app/destroy.go @@ -32,9 +32,10 @@ var CommandDestroy = &cli.Command{ Usage: "destroys the envd environment", Flags: []cli.Flag{ &cli.PathFlag{ - Name: "path", - Usage: "Path to the directory containing the build.envd", - Aliases: []string{"p"}, + Name: "path", + Usage: "Path to the directory containing the build.envd", + Aliases: []string{"p"}, + DefaultText: "current directory", }, &cli.PathFlag{ Name: "name", @@ -53,7 +54,7 @@ func destroy(clicontext *cli.Context) error { return errors.New("Cannot specify --path and --name at the same time.") } if path == "" && name == "" { - return errors.New("One of the following flags is required: --path and --name.") + path = "." } dockerClient, err := docker.NewClient(clicontext.Context) if err != nil {