Switch to fmt.Fprintf for displaying usage error

This commit is contained in:
Dan Buch 2016-05-23 22:03:19 -04:00
parent 8f25dbb615
commit a41a43b00f
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC

View File

@ -97,7 +97,7 @@ func (c Command) Run(ctx *Context) (err error) {
HandleExitCoder(err)
return err
}
fmt.Fprintln(ctx.App.Writer, "Incorrect Usage: %s\n\n", err)
fmt.Fprintf(ctx.App.Writer, "Incorrect Usage: %s\n\n", err)
fmt.Fprintln(ctx.App.Writer)
ShowCommandHelp(ctx, c.Name)
return err