PrintDefaults prints, to standard error unless configured otherwise, the default values of all defined flags in the set.
()
| 550 | // PrintDefaults prints, to standard error unless configured |
| 551 | // otherwise, the default values of all defined flags in the set. |
| 552 | func (f *FlagSet) PrintDefaults() { |
| 553 | usages := f.FlagUsages() |
| 554 | fmt.Fprint(f.Output(), usages) |
| 555 | } |
| 556 | |
| 557 | // defaultIsZeroValue returns true if the default value for this flag represents |
| 558 | // a zero value. |