Merge pull request #121 from KAllan357/add_cnf_to_subcommand

Copy CommandNotFound into the NewApp for subcommands
This commit is contained in:
Jeremy Saenz 2014-08-02 12:57:48 -07:00
commit e30d7bdf28

View File

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