Switch to fmt.Fprintf for displaying usage error

main
Dan Buch 8 years ago
parent 8f25dbb615
commit a41a43b00f
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC

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

Loading…
Cancel
Save