-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Issue with env showing in help #206
Comments
Is it that you wanted the environment variable to not show up in the help text? |
Yes (and not to be considered as arguments with --) |
I'm not completely clear on what you mean by "not to be considered as arguments with --". Can you show me how you would want the help output to appear, for the example from your original comment above? It would be most helpful if you could copy and paste the output from your original comment and edit it to how you would want it to appear. |
It is :
And it needs to be :
While still reading the env variables in the code. Like if environment variable are not specified as command line argument with short or long options ("-short or --long") that no command line options are generated for them and nothing present in the help. (except wanted explicitely) |
Hello,
As you can see on this picture and told in the documentation, my env var are put in the struct tags of the args struct with default values.
And here you can see that for any reason env var are also shown as arguments sadly.
It did not do this previously but my project evolved (but the library always has been in version 1.4.3 and this part kept untouched) and so I don't understand why there is a problem now and how to fix it.
I don't know if I missed something or if it is finally normal, but if it is not, maybe I should try to work on a PR, but I am pretty overloaded, so sadly (for me) I may not be able to try to fix this in the short term.
The text was updated successfully, but these errors were encountered: