Merge pull request #121 from KAllan357/add_cnf_to_subcommand
Copy CommandNotFound into the NewApp for subcommands
This commit is contained in:
commit
e30d7bdf28
@ -118,6 +118,9 @@ func (c Command) startApp(ctx *Context) error {
|
||||
app.Usage = c.Usage
|
||||
}
|
||||
|
||||
// set CommandNotFound
|
||||
app.CommandNotFound = ctx.App.CommandNotFound
|
||||
|
||||
// set the flags and commands
|
||||
app.Commands = c.Subcommands
|
||||
app.Flags = c.Flags
|
||||
|
Loading…
Reference in New Issue
Block a user