Merge pull request #1782 from prometheus/fabxc-testflags

cmd/prometheus: use own flag set
This commit is contained in:
Fabian Reinartz 2016-07-04 09:27:10 +02:00 committed by GitHub
commit f4398d5bdf

View file

@ -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