Merge pull request #90 from jmhodges/fail_on_missing_command

use a non-zero exit code when no command is given
This commit is contained in:
Matthias Kadenbach 2016-12-21 20:48:03 -08:00 committed by GitHub
commit 474d0f5a60
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()
}