use a non-zero exit code when no command is given

This commit is contained in:
Jeff Hodges 2016-04-08 14:26:38 -07:00
parent ce1b59bb81
commit 91a3364232
1 changed files with 2 additions and 1 deletions

View File

@ -158,7 +158,8 @@ func main() {
fmt.Println(version)
default:
fallthrough
helpCmd()
os.Exit(1)
case "help":
helpCmd()
}