RegisterFlags adds the flags required to config this to the given FlagSet
(prefix string, f *flag.FlagSet)
| 15 | |
| 16 | // RegisterFlags adds the flags required to config this to the given FlagSet |
| 17 | func (cfg *Config) RegisterFlagsAndApplyDefaults(prefix string, f *flag.FlagSet) { |
| 18 | f.BoolVar(&cfg.Enabled, util.PrefixConfig(prefix, "enabled"), true, "Enable anonymous usage reporting.") |
| 19 | cfg.Backoff.RegisterFlagsWithPrefix(prefix, f) |
| 20 | cfg.Backoff.MaxRetries = 0 |
| 21 | } |
nothing calls this directly
no test coverage detected