IgnoredFlag encapsulates a flag that may have been previously valid but is now ignored. If an IgnoredFlag is set, a warning is printed and operation continues.
| 20 | // now ignored. If an IgnoredFlag is set, a warning is printed and |
| 21 | // operation continues. |
| 22 | type IgnoredFlag struct { |
| 23 | lg *zap.Logger |
| 24 | Name string |
| 25 | } |
| 26 | |
| 27 | // IsBoolFlag is defined to allow the flag to be defined without an argument |
| 28 | func (f *IgnoredFlag) IsBoolFlag() bool { |
nothing calls this directly
no outgoing calls
no test coverage detected