mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
fix(config): command line flags are parsed twice, drop automatic parsing
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user