copy the CommandNotFound when running as a subcommand

main
Kyle Allan 10 years ago
parent 27ecc97192
commit 1880853f15

@ -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)

Loading…
Cancel
Save