fix bug with PersistentPreRunE

This commit is contained in:
Viktor Stanchev 2015-09-30 00:09:17 -07:00
parent 046a673252
commit 72ee37f33e
1 changed files with 1 additions and 1 deletions

View File

@ -522,7 +522,7 @@ func (c *Command) execute(a []string) (err error) {
for p := c; p != nil; p = p.Parent() {
if p.PersistentPreRunE != nil {
if err := p.PersistentPostRunE(c, argWoFlags); err != nil {
if err := p.PersistentPreRunE(c, argWoFlags); err != nil {
return err
}
break