cleanup some issues with error display

This commit is contained in:
Lynn Cyrin
2019-08-01 22:10:18 -07:00
parent fdd4d10691
commit f21b22dd90
3 changed files with 1 additions and 4 deletions

2
app.go
View File

@@ -230,7 +230,6 @@ func (a *App) Run(arguments []string) (err error) {
cerr := checkRequiredFlags(a.Flags, set)
if cerr != nil {
fmt.Fprintln(a.Writer, cerr)
ShowAppHelp(context)
return cerr
}
@@ -361,7 +360,6 @@ func (a *App) RunAsSubcommand(ctx *Context) (err error) {
cerr := checkRequiredFlags(a.Flags, set)
if cerr != nil {
fmt.Fprintln(a.Writer, cerr)
ShowSubcommandHelp(context)
return cerr
}