Commit 6f688c3d authored by Clayton Coleman's avatar Clayton Coleman

Improve the message for UsageError

Capitalize, also indicate that we have examples
parent 1524d749
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment