SetOutput sets the destination for usage and error messages. If output is nil, os.Stderr is used.
(output io.Writer)
| 295 | // SetOutput sets the destination for usage and error messages. |
| 296 | // If output is nil, os.Stderr is used. |
| 297 | func (f *FlagSet) SetOutput(output io.Writer) { |
| 298 | f.output = output |
| 299 | } |
| 300 | |
| 301 | // VisitAll visits the flags in lexicographical order or |
| 302 | // in primordial order if f.SortFlags is false, calling fn for each. |
no outgoing calls