mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08: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…
Reference in a new issue