multiconfig icon indicating copy to clipboard operation
multiconfig copied to clipboard

What is the priority of loading values?

Open sharonjl opened this issue 7 years ago • 1 comments

In which order does the lib load values? Does the config file override command line flag?

sharonjl avatar Jan 11 '19 16:01 sharonjl

I believe it depends on what loader you use. For the default loader: https://github.com/koding/multiconfig/blob/master/multiconfig.go#L23-L24

If you don't like this default order, you can construct your own loader with whatever order you want.

markx avatar Jan 29 '19 01:01 markx