Files
3410369ad4 Chore: Update to latest Cortex (#947)
* Chore: Update to latest Cortex

* Fix typos

Signed-off-by: Michel Hollands <[email protected]>

* Use tempo prefix for dns provider registerer

Signed-off-by: Michel Hollands <[email protected]>

Co-authored-by: Michel Hollands <[email protected]>
2021-09-13 11:24:25 -04:00

23 lines
348 B
Go

package flagext
import (
"flag"
)
type ignoredFlag struct {
name string
}
func (ignoredFlag) String() string {
return "ignored"
}
func (d ignoredFlag) Set(string) error {
return nil
}
// IgnoredFlag ignores set value, without any warning
func IgnoredFlag(f *flag.FlagSet, name, message string) {
f.Var(ignoredFlag{name}, name, message)
}