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
altsrc with YAML: Flag is Never Assigned #1250
Comments
This issue or PR has been automatically marked as stale because it has not had recent activity. Please add a comment bumping this if you're still interested in it's resolution! Thanks for your help, please let us know if you need anything else. |
Still interested in its resolution |
This issue or PR has been bumped and is no longer marked as stale! Feel free to bump it again in the future, if it's still relevant. |
This issue or PR has been automatically marked as stale because it has not had recent activity. Please add a comment bumping this if you're still interested in it's resolution! Thanks for your help, please let us know if you need anything else. |
Still interested in its resolution |
This issue or PR has been bumped and is no longer marked as stale! Feel free to bump it again in the future, if it's still relevant. |
Here's an simple example on v2.20.2: main.go
example.yml
|
@Archwizard The code you have posted works
|
@sshaw Do you have a complete example to share ? |
Thanks @Archwizard. The
|
@sshaw You need to provide Flag to app as well
|
I hope that the |
How to use a YAML config file to set flags? I've read the docs and tried a couple of things; then waited a month and read them again but, nothing seems to work.
I'm using v2.3.0.
But every time I run it I get an error because foo is required and not set.
I have also tried what sounds like a more verbose version of the above:
The config is printed and everything is there but the flag is never assigned.
I thought it may be related to #1086 but this appears to be fixed in v2.3.0. Help!
The text was updated successfully, but these errors were encountered: