show errors
This commit is contained in:
parent
2299852c3c
commit
19140e1fb5
1
app.go
1
app.go
@ -342,6 +342,7 @@ func (a *App) RunAsSubcommand(ctx *Context) (err error) {
|
|||||||
|
|
||||||
cerr := checkRequiredFlags(a.Flags, set)
|
cerr := checkRequiredFlags(a.Flags, set)
|
||||||
if cerr != nil {
|
if cerr != nil {
|
||||||
|
showFlagError(a.Writer, cerr)
|
||||||
ShowSubcommandHelp(context)
|
ShowSubcommandHelp(context)
|
||||||
return cerr
|
return cerr
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user