cmd/prometheus: use own flag set

Fixes #1743
This commit is contained in:
Fabian Reinartz 2016-07-03 14:23:31 +02:00
parent b3f321b38a
commit 8c24dfdb86
1 changed files with 2 additions and 4 deletions

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