aboutsummaryrefslogtreecommitdiffstats
path: root/Godeps/_workspace/src/github.com/codegangsta/cli/command.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-10 23:41:33 +0800
committerFelix Lange <fjl@twurst.com>2015-03-10 23:41:33 +0800
commit2407f006adbcbe5f5405b8591c5e9845cfa7dd5c (patch)
treea4dbe5d61b16b524c0b50ca0313691ffd376002b /Godeps/_workspace/src/github.com/codegangsta/cli/command.go
parent0bb7377ebee69c3467c21d355dd24945d0becad5 (diff)
downloadgo-tangerine-2407f006adbcbe5f5405b8591c5e9845cfa7dd5c.tar.gz
go-tangerine-2407f006adbcbe5f5405b8591c5e9845cfa7dd5c.tar.zst
go-tangerine-2407f006adbcbe5f5405b8591c5e9845cfa7dd5c.zip
Godeps: bump github.com/codegangsta/cli
Diffstat (limited to 'Godeps/_workspace/src/github.com/codegangsta/cli/command.go')
-rw-r--r--Godeps/_workspace/src/github.com/codegangsta/cli/command.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/Godeps/_workspace/src/github.com/codegangsta/cli/command.go b/Godeps/_workspace/src/github.com/codegangsta/cli/command.go
index 5747e52e8..07c919a87 100644
--- a/Godeps/_workspace/src/github.com/codegangsta/cli/command.go
+++ b/Godeps/_workspace/src/github.com/codegangsta/cli/command.go
@@ -119,7 +119,7 @@ func (c Command) Run(ctx *Context) error {
// Returns true if Command.Name or Command.ShortName matches given name
func (c Command) HasName(name string) bool {
- return c.Name == name || c.ShortName == name
+ return c.Name == name || (c.ShortName != "" && c.ShortName == name)
}
func (c Command) startApp(ctx *Context) error {