diff --git a/app.go b/app.go index e193b82..4ae0c5e 100644 --- a/app.go +++ b/app.go @@ -151,6 +151,9 @@ func (a *App) RunAsSubcommand(ctx *Context) error { } } + // add the App's CommandNotFound + a.CommandNotFound = ctx.App.CommandNotFound + // append flags if a.EnableBashCompletion { a.appendFlag(BashCompletionFlag)