Godeps: bump github.com/codegangsta/cli

This commit is contained in:
Felix Lange
2015-03-10 16:41:33 +01:00
parent 0bb7377ebe
commit 2407f006ad
5 changed files with 42 additions and 11 deletions

View File

@ -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 {