SetOut sets the destination for usage messages. If newOut is nil, os.Stdout is used.
(newOut io.Writer)
| 294 | // SetOut sets the destination for usage messages. |
| 295 | // If newOut is nil, os.Stdout is used. |
| 296 | func (c *Command) SetOut(newOut io.Writer) { |
| 297 | c.outWriter = newOut |
| 298 | } |
| 299 | |
| 300 | // SetErr sets the destination for error messages. |
| 301 | // If newErr is nil, os.Stderr is used. |
no outgoing calls