A few follow-up conflict resolutions

This commit is contained in:
2022-05-07 14:43:15 -04:00
parent 3d67b75be7
commit 63b1a7deee
4 changed files with 6 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ func (c *Command) Run(ctx *Context) (err error) {
_, _ = fmt.Fprintln(cCtx.App.Writer)
if ctx.App.Suggest {
if suggestion, err := ctx.App.suggestFlagFromError(err, c.Name); err == nil {
fmt.Fprintf(context.App.Writer, suggestion)
fmt.Fprintf(cCtx.App.Writer, suggestion)
}
}
_ = ShowCommandHelp(cCtx, c.Name)