Merge pull request #74 from Winslett/context-accessible-command

Make Command accessible from Context
This commit is contained in:
Jeremy Saenz
2014-04-22 20:33:02 -07:00
3 changed files with 6 additions and 1 deletions

View File

@@ -91,6 +91,7 @@ func (c Command) Run(ctx *Context) error {
if checkCommandHelp(context, c.Name) {
return nil
}
context.Command = c
c.Action(context)
return nil
}