mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-05 04:16:15 +02:00
Merge pull request #1782 from prometheus/fabxc-testflags
cmd/prometheus: use own flag set
This commit is contained in:
commit
f4398d5bdf
@ -57,10 +57,8 @@ var cfg = struct {
|
||||
}
|
||||
|
||||
func init() {
|
||||
flag.CommandLine.Init(os.Args[0], flag.ContinueOnError)
|
||||
flag.CommandLine.Usage = usage
|
||||
|
||||
cfg.fs = flag.CommandLine
|
||||
cfg.fs = flag.NewFlagSet(os.Args[0], flag.ContinueOnError)
|
||||
cfg.fs.Usage = usage
|
||||
|
||||
// Set additional defaults.
|
||||
cfg.storage.SyncStrategy = local.Adaptive
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user