Skip to content

Commit

Permalink
Also cover default versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
jspc committed Mar 8, 2022
1 parent eee05e0 commit 80718c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var installCmd = &cobra.Command{
return fmt.Errorf("missing package(s)")
}

if argCount > 1 && version != "" {
if argCount > 1 && (version != "" || version != "latest") {
cmd.Usage()

return fmt.Errorf("setting version with multiple packages makes no sense")
Expand Down

0 comments on commit 80718c2

Please sign in to comment.