I would like to add the ability to create a FlagSet from envconfig.
This would allow overriding the config values set in environment, using command line argument.
Using the FlagSet option would allow using envconfig in apps that already use flag or pflag for command line arguments.
I see two ways of doing this:
1 - add a GetFlagSet() method to envconfig which will use the internal gatherInfo()
2 - Expose GatherInfo() and VarInfo so that GetFlagInfo() will be implemented outside of the envconfig pkg.
Hi,
I would like to add the ability to create a FlagSet from envconfig. This would allow overriding the config values set in environment, using command line argument.
Using the FlagSet option would allow using envconfig in apps that already use flag or pflag for command line arguments.
I see two ways of doing this: 1 - add a GetFlagSet() method to envconfig which will use the internal gatherInfo() 2 - Expose GatherInfo() and VarInfo so that GetFlagInfo() will be implemented outside of the envconfig pkg.
What do you think?