From aba73cedacbb7b1cec2efb9962460683cd00a90c Mon Sep 17 00:00:00 2001 From: jhowarth Date: Tue, 3 Mar 2015 14:02:42 -0800 Subject: [PATCH] Copy the writer of the App to the subcommand App --- command.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command.go b/command.go index b040395..5f2b47c 100644 --- a/command.go +++ b/command.go @@ -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) }