Skip to content

Commit

Permalink
fix bug with PersistentPreRunE
Browse files Browse the repository at this point in the history
  • Loading branch information
vikstrous committed Sep 30, 2015
1 parent 046a673 commit 72ee37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72ee37f

Please sign in to comment.