Browse Source

Merge pull request #1782 from prometheus/fabxc-testflags

cmd/prometheus: use own flag set
pull/1745/merge
Fabian Reinartz 9 years ago committed by GitHub
parent
commit
f4398d5bdf
  1. 6
      cmd/prometheus/config.go

6
cmd/prometheus/config.go

@ -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…
Cancel
Save