use command not found helper

This commit is contained in:
Harshavardhana
2015-08-03 18:01:18 -07:00
parent b8461980bb
commit f8141493bd
3 changed files with 8 additions and 3 deletions

View File

@@ -143,6 +143,11 @@ VERSION:
{{$key}}:
{{$value}}
{{end}}
`
app.CommandNotFound = func(ctx *cli.Context, command string) {
Fatalf("Command not found: %s\n", command)
}
app.RunAndExitOnError()
}