(prefix string, fs *pflag.FlagSet)
| 33 | } |
| 34 | } |
| 35 | func (s *StorageCacheOptions) AddFlags(prefix string, fs *pflag.FlagSet) { |
| 36 | fs.DurationVar(&s.CacheExpiration, getFlagName(prefix, "cache-expiration"), s.CacheExpiration, "cache exipiration; unit seconds") |
| 37 | } |
| 38 | |
| 39 | func getFlagName(prefix, flagName string) string { |
| 40 | if prefix == "" { |
nothing calls this directly
no test coverage detected