Skip to content

Commit

Permalink
specify the color as the required arg (spf13#777)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayunit100 authored and umarcor committed Mar 18, 2019
1 parent 7111305 commit 1e2158b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ var cmd = &cobra.Command{
Short: "hello",
Args: func(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
return errors.New("requires at least one arg")
return errors.New("requires a color argument")
}
if myapp.IsValidColor(args[0]) {
return nil
Expand Down

0 comments on commit 1e2158b

Please sign in to comment.