From 84cda643f38c4ffd53ad008dfebce61c23ab1c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 12 Sep 2018 21:50:21 +0100 Subject: [PATCH] fix(config): command line flags are parsed twice, drop automatic parsing --- internal/config/config.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index a7c84d088..a1b7885dd 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -3,7 +3,6 @@ package config import ( "bufio" "bytes" - "flag" "path" "strings" "time" @@ -80,9 +79,6 @@ func init() { func (config *configSchema) Read() { v := viper.New() - pflag.CommandLine.AddGoFlagSet(flag.CommandLine) - pflag.Parse() - err := v.BindPFlags(pflag.CommandLine) if err != nil { log.Errorf("Failed to bind flag set to the configuration: %s", err)