Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DefaultLoader/FlagLoader is unusable #75

Open
smthpickboy opened this issue Jun 6, 2018 · 1 comment
Open

DefaultLoader/FlagLoader is unusable #75

smthpickboy opened this issue Jun 6, 2018 · 1 comment

Comments

@smthpickboy
Copy link

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.

@markx
Copy link

markx commented Jan 29, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants