Skip to content

Commit

Permalink
Fix kando output command (#4064)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavannd1 authored and Ilya Kislenko committed Oct 10, 2018
1 parent 3eb8275 commit 352e587
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/kando/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ func newOutputCommand() *cobra.Command {
}

func validateArguments(c *cobra.Command, args []string) error {
if err := cobra.ExactArgs(2); err != nil {
return errors.New("Command requires exactly two arguments")
if len(args) != 2 {
return errors.Errorf("Command accepts 2 arguments, received %d arguments", len(args))
}
return output.ValidateKey(args[0])
}
Expand Down

0 comments on commit 352e587

Please sign in to comment.