From 6f688c3df8edce148d4de4cb11bc3d7e8bc5ace6 Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Wed, 28 Oct 2015 13:32:54 -0400 Subject: [PATCH] Improve the message for UsageError Capitalize, also indicate that we have examples --- pkg/kubectl/cmd/util/helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubectl/cmd/util/helpers.go b/pkg/kubectl/cmd/util/helpers.go index 9e3283fa461..c33031134f4 100644 --- a/pkg/kubectl/cmd/util/helpers.go +++ b/pkg/kubectl/cmd/util/helpers.go @@ -207,7 +207,7 @@ func messageForError(err error) string { func UsageError(cmd *cobra.Command, format string, args ...interface{}) error { msg := fmt.Sprintf(format, args...) - return fmt.Errorf("%s\nsee '%s -h' for help.", msg, cmd.CommandPath()) + return fmt.Errorf("%s\nSee '%s -h' for help and examples.", msg, cmd.CommandPath()) } func getFlag(cmd *cobra.Command, flag string) *pflag.Flag {