From 15ae9297039e727410c8c408f03f84ad4262bdf4 Mon Sep 17 00:00:00 2001 From: Cory Bennett Date: Wed, 16 Sep 2015 23:04:36 -0700 Subject: [PATCH] fix command line parser broken in 0.0.10 --- jira/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jira/main.go b/jira/main.go index bc8589b4..c19700b3 100644 --- a/jira/main.go +++ b/jira/main.go @@ -222,7 +222,7 @@ Command Options: // check to see if it was set in the configs: if value, ok := opts["command"].(string); ok { command = value - } else { + } else if _, ok := jiraCommands[command]; !ok || command == "" { args = append([]string{command}, args...) command = "view" }