From cb27ce11fba1a33e42233dea2658805c62a17e74 Mon Sep 17 00:00:00 2001 From: Juan Leni Date: Wed, 13 Feb 2019 06:32:16 +0100 Subject: [PATCH] Deprecate and maintain backwards compatibility --- command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command.go b/command.go index 3e97687a..6dbb3e8c 100644 --- a/command.go +++ b/command.go @@ -210,8 +210,10 @@ func (c *Command) SetArgs(a []string) { // SetOutput sets the destination for usage and error messages. // If output is nil, os.Stderr is used. +// Deprecated: Use SetOut and/or SetErr instead func (c *Command) SetOutput(output io.Writer) { c.outWriter = output + c.errWriter = output } // SetOut sets the destination for usage messages.