Merge pull request #75 from Winslett/command-not-found

Customizable command not found function
This commit is contained in:
Jeremy Saenz
2014-04-22 20:33:49 -07:00
3 changed files with 30 additions and 1 deletions

2
app.go
View File

@@ -29,6 +29,8 @@ type App struct {
Before func(context *Context) error
// The action to execute when no subcommands are specified
Action func(context *Context)
// Execute this function if the proper command cannot be found
CommandNotFound func(context *Context, command string)
// Compilation date
Compiled time.Time
// Author