mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
Deprecate and maintain backwards compatibility
This commit is contained in:
parent
618bc00f80
commit
cb27ce11fb
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue