mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* 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]>
23 lines
348 B
Go
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)
|
|
}
|