From 8c24dfdb860c09a5bf776b2cfb0b6f9a676d5b1f Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Sun, 3 Jul 2016 14:23:31 +0200 Subject: [PATCH] cmd/prometheus: use own flag set Fixes #1743 --- cmd/prometheus/config.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/prometheus/config.go b/cmd/prometheus/config.go index 896e79b7b..59f0c336c 100644 --- a/cmd/prometheus/config.go +++ b/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