From b49d884dfa3d393e0ce319bdf963f72adf97c41a Mon Sep 17 00:00:00 2001 From: Sergio Galvan Date: Tue, 4 Nov 2014 21:28:47 -0800 Subject: [PATCH] Show run help with no args --- run.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run.go b/run.go index d7f067d..230428c 100644 --- a/run.go +++ b/run.go @@ -24,6 +24,10 @@ func init() { } func runRun(cmd *Command, args []string) { + if len(args) < 1 { + cmd.printUsage() + os.Exit(1) + } workDir, err := os.Getwd() if err != nil { handleError(err)