Improve the message for UsageError

Capitalize, also indicate that we have examples
This commit is contained in:
Clayton Coleman 2015-10-28 13:32:54 -04:00
parent 1524d7490a
commit 6f688c3df8

View File

@ -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 {