From 91a33642328c0e6c42fc62b9c5026cc31f6ec4c8 Mon Sep 17 00:00:00 2001 From: Jeff Hodges Date: Fri, 8 Apr 2016 14:26:38 -0700 Subject: [PATCH] use a non-zero exit code when no command is given --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index b6da438..10925b1 100644 --- a/main.go +++ b/main.go @@ -158,7 +158,8 @@ func main() { fmt.Println(version) default: - fallthrough + helpCmd() + os.Exit(1) case "help": helpCmd() }