CLI command not found handler

This commit is contained in:
Gregory Eremin 2014-09-24 14:46:53 +04:00
parent 8566773ca0
commit 852661578c

View File

@ -131,7 +131,7 @@ func main() {
},
}
app.CommandNotFound = func(c *cli.Context, cmd string) {
fmt.Printf("Unknown command %q\n", cmd)
}
app.Run(os.Args)