From 0a6c06ed0bdf40caf943193d6bed506f28dfe4a3 Mon Sep 17 00:00:00 2001 From: jay vyas Date: Sat, 27 Oct 2018 09:20:53 -0400 Subject: [PATCH] specify the color as the required arg (#777) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4316cb0f..7cb5cee5 100644 --- a/README.md +++ b/README.md @@ -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