Ensure all flag aliases are set when Destination given

and extend "Incorrect Usage" message to show the error.

Closes #430
This commit is contained in:
Dan Buch
2016-05-23 22:00:59 -04:00
parent 685865d2d9
commit 8f25dbb615
4 changed files with 92 additions and 9 deletions

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.")
fmt.Fprintln(ctx.App.Writer, "Incorrect Usage: %s\n\n", err)
fmt.Fprintln(ctx.App.Writer)
ShowCommandHelp(ctx, c.Name)
return err