From 04de2c49b50c1907c395a7652af76506f12fe1a4 Mon Sep 17 00:00:00 2001 From: Matthew Johnson Date: Thu, 3 May 2018 14:23:23 -0700 Subject: [PATCH] Make repo subcommand help text consistent Signed-off-by: Matthew Johnson --- mixer/cmd/repos.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mixer/cmd/repos.go b/mixer/cmd/repos.go index 15c81aa..17fd85d 100644 --- a/mixer/cmd/repos.go +++ b/mixer/cmd/repos.go @@ -83,7 +83,7 @@ func init() { func runAddRepo(cmd *cobra.Command, args []string) { if len(args) != 2 { - fail(errors.New("add requires 2 arguments: ")) + fail(errors.New("add requires exactly two arguments: ")) } b, err := builder.NewFromConfig(config) if err != nil { @@ -99,7 +99,7 @@ func runAddRepo(cmd *cobra.Command, args []string) { func runRemoveRepo(cmd *cobra.Command, args []string) { if len(args) != 1 { - fail(errors.New("remove requires one argument: ")) + fail(errors.New("remove requires exactly one argument: ")) } b, err := builder.NewFromConfig(config) if err != nil { @@ -139,7 +139,7 @@ func runInitRepo(cmd *cobra.Command, args []string) { func runSetURLRepo(cmd *cobra.Command, args []string) { if len(args) != 2 { - fail(errors.New("set-url requires two arguments: ")) + fail(errors.New("set-url requires exactly two arguments: ")) } b, err := builder.NewFromConfig(config)