Copy the writer of the App to the subcommand App

This commit is contained in:
jhowarth 2015-03-03 14:02:42 -08:00
parent a6482d2687
commit aba73cedac

View File

@ -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)
}