diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-10 23:41:33 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-10 23:41:33 +0800 |
commit | 2407f006adbcbe5f5405b8591c5e9845cfa7dd5c (patch) | |
tree | a4dbe5d61b16b524c0b50ca0313691ffd376002b /Godeps/_workspace/src/github.com/codegangsta/cli/command.go | |
parent | 0bb7377ebee69c3467c21d355dd24945d0becad5 (diff) | |
download | go-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.go | 2 |
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 { |