diff options
author | Wolfy-J <[email protected]> | 2019-02-14 14:58:04 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-02-14 14:58:04 +0300 |
commit | a9e8ff6ac4f1a20c2024312cab65dd2c12c721e8 (patch) | |
tree | 3d8641f60a51346dbd044ced080a51e60f61434a /cmd/util/config.go | |
parent | dd4bc086e18cda344b75c29175885db90c8e7196 (diff) |
version bump
Diffstat (limited to 'cmd/util/config.go')
-rw-r--r-- | cmd/util/config.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/util/config.go b/cmd/util/config.go index a829f44c..a354b132 100644 --- a/cmd/util/config.go +++ b/cmd/util/config.go @@ -66,7 +66,9 @@ func LoadConfig(cfgFile string, path []string, name string, flags []string) (*co // If a cfg file is found, read it in. if err := cfg.ReadInConfig(); err != nil { - return nil, err + if len(flags) == 0 { + return nil, err + } } if len(flags) != 0 { |