Switch to fmt.Fprintf for displaying usage error
This commit is contained in:
parent
8f25dbb615
commit
a41a43b00f
@ -97,7 +97,7 @@ func (c Command) Run(ctx *Context) (err error) {
|
|||||||
HandleExitCoder(err)
|
HandleExitCoder(err)
|
||||||
return 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)
|
fmt.Fprintln(ctx.App.Writer)
|
||||||
ShowCommandHelp(ctx, c.Name)
|
ShowCommandHelp(ctx, c.Name)
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user