diff options
Diffstat (limited to 'init.go')
-rw-r--r-- | init.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/init.go b/init.go index bef94af..a4790d5 100644 --- a/init.go +++ b/init.go @@ -36,7 +36,9 @@ func init() { func initConfig() { pflag.Parse() - viper.BindPFlags(pflag.CommandLine) + if err := viper.BindPFlags(pflag.CommandLine); err != nil { + log.Printf("%v\n", err) + } viper.SetConfigName("getwtxt") viper.AddConfigPath(".") |