Deprecate and maintain backwards compatibility

This commit is contained in:
Juan Leni 2019-02-13 06:32:16 +01:00
parent 3b830e6362
commit 0bc69e7291
No known key found for this signature in database
GPG key ID: 23F1452155140419

View file

@ -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.