move to CommandNotFound copy to startApp

This commit is contained in:
Kyle Allan
2014-07-25 10:06:04 -07:00
parent 1880853f15
commit 156cd267e5
2 changed files with 3 additions and 3 deletions

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