uber-go / config

Configuration for Go applications

Home Page:https://godoc.org/go.uber.org/config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command line provider conflicts with Cobra

bayesianmind opened this issue · comments

commented

The default config provider conflicts badly with cobra:
https://github.com/uber-go/config/blob/master/config.go#L76
There's no way to easily turn off the command line provider as far as I know if you want to use the default fx fileset and env expansion logic.

This was breaking Catalyst's flags and as soon as I stopped using the command line provider Catalyst's flags came back.