GetNormalizeFunc returns the previously set NormalizeFunc of a function which does no translation, if not set previously.
()
| 267 | // GetNormalizeFunc returns the previously set NormalizeFunc of a function which |
| 268 | // does no translation, if not set previously. |
| 269 | func (f *FlagSet) GetNormalizeFunc() func(f *FlagSet, name string) NormalizedName { |
| 270 | if f.normalizeNameFunc != nil { |
| 271 | return f.normalizeNameFunc |
| 272 | } |
| 273 | return func(f *FlagSet, name string) NormalizedName { return NormalizedName(name) } |
| 274 | } |
| 275 | |
| 276 | func (f *FlagSet) normalizeFlagName(name string) NormalizedName { |
| 277 | n := f.GetNormalizeFunc() |
no test coverage detected