diff --git a/cmd/gb-vendor/delete.go b/cmd/gb-vendor/delete.go index 47d15a7..3018ab4 100644 --- a/cmd/gb-vendor/delete.go +++ b/cmd/gb-vendor/delete.go @@ -36,7 +36,7 @@ Flags: Run: func(ctx *gb.Context, args []string) error { if len(args) != 1 && !deleteAll { return errors.New("delete: import path or --all flag is missing") - } else if len(args) == 1 && deleteAll { + } else if len(args) >= 1 && deleteAll { return errors.New("delete: you cannot specify path and --all flag at once") }