You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be nice if there was support for config files like there is for environment variables. That'd make cmdln the only library I'd need to bootstrap a command line app.
The text was updated successfully, but these errors were encountered:
It'd be nice if there was support for config files like there is for environment variables. That'd make cmdln the only library I'd need to bootstrap a command line app.
—
Reply to this email directly or view it on GitHub.
Have a config object that's pre-loaded with a "get" method. Then each place you'd specify an ENV var, you define a string to use with get(). Then the format of the file is of no consequence.
So you'd pass a "config" object into the dashdash constructor, then for each option call get() on the config object with the appropriate string and have the returned value used for defaults.
It'd be nice if there was support for config files like there is for environment variables. That'd make cmdln the only library I'd need to bootstrap a command line app.
The text was updated successfully, but these errors were encountered: