multiconfig icon indicating copy to clipboard operation
multiconfig copied to clipboard

DefaultLoader/FlagLoader is unusable

Open smthpickboy opened this issue 7 years ago • 1 comments

A common case for production is you need to use a command line parameter to specify the path of config file, then read and parse it. But that parameter option is apparently not included in FlagLoader's FlagSet, which will result in

flag provided but not defined

error.

Need to remove it from DefaultLoader.

smthpickboy avatar Jun 06 '18 16:06 smthpickboy

If that's not supported out of box, I think you can just create a separate file loader and load that config file again into the config struct.

markx avatar Jan 29 '19 02:01 markx