Skip to content

Commit

Permalink
Copy the writer of the App to the subcommand App
Browse files Browse the repository at this point in the history
  • Loading branch information
jhowarth committed Mar 3, 2015
1 parent a6482d2 commit aba73ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,8 @@ func (c Command) startApp(ctx *Context) error {
app.Action = helpSubcommand.Action
}

// set the writer to the original App's writer
app.Writer = ctx.App.Writer

return app.RunAsSubcommand(ctx)
}

0 comments on commit aba73ce

Please sign in to comment.