Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Error when multiple paths are passed with --all #656

Merged
merged 1 commit into from
Nov 12, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/gb-vendor/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down