Skip to content

Commit

Permalink
fix: validate --all flag with args in ddev delete, for ddev#6209 (d…
Browse files Browse the repository at this point in the history
…dev#6650) [skip ci]
  • Loading branch information
stasadev authored Oct 29, 2024
1 parent 3fed223 commit 8209f51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/ddev/cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ ddev delete --all`,
if noConfirm && deleteAll {
util.Failed("Sorry, it's not possible to use flags --all and --yes together")
}

if deleteAll && len(args) > 0 {
util.Failed("Sorry, it's not possible to use flag --all and project names together")
}
// Skip project validation if --omit-snapshot is provided
originalRunValidateConfig := ddevapp.RunValidateConfig
ddevapp.RunValidateConfig = !omitSnapshot
Expand Down

0 comments on commit 8209f51

Please sign in to comment.