copy the CommandNotFound when running as a subcommand
This commit is contained in:
parent
27ecc97192
commit
1880853f15
3
app.go
3
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
|
// append flags
|
||||||
if a.EnableBashCompletion {
|
if a.EnableBashCompletion {
|
||||||
a.appendFlag(BashCompletionFlag)
|
a.appendFlag(BashCompletionFlag)
|
||||||
|
Loading…
Reference in New Issue
Block a user