Merge pull request #121 from KAllan357/add_cnf_to_subcommand

Copy CommandNotFound into the NewApp for subcommands
main
Jeremy Saenz 10 years ago
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…
Cancel
Save