Copy the writer of the App to the subcommand App

main
jhowarth 9 years ago
parent a6482d2687
commit aba73cedac

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

Loading…
Cancel
Save