SetOutput sets the destination for usage and error messages. If output is nil, os.Stderr is used. Deprecated: Use SetOut and/or SetErr instead
(output io.Writer)
| 287 | // |
| 288 | // Deprecated: Use SetOut and/or SetErr instead |
| 289 | func (c *Command) SetOutput(output io.Writer) { |
| 290 | c.outWriter = output |
| 291 | c.errWriter = output |
| 292 | } |
| 293 | |
| 294 | // SetOut sets the destination for usage messages. |
| 295 | // If newOut is nil, os.Stdout is used. |
no outgoing calls