-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Consider removing flag auto-generation? #870
Comments
I didn't understand why the flags were generated in the first place. I support removing this and would like to contribute to this. |
🚀🚀🚀 |
on it |
I have started to work on this but I am still getting an error in the test cases
@saschagrunert would really appreciate your help here. UPDATE This issue is not being reproduced on Travis but still is a problem on my system. Could you help me investigate as to why? UPDATE 2 This issue is being reproduced with Go 1.13 |
Hm, it might be related to the indirect blackfriday dependency of go-md2man. Can you try to remove |
The issue here was inconsistent use of Go Module system. I dropped in an environment variable GO111MODULE=on which made a lot of difference. Earlier it would run the tests using a different version of dependencies for different Go versions. Now that has been fixed. I, however, have a new problem related to short flags now |
This is done and released as a part of v1.22.2 |
So @asahasrabuddhe dramatically improved the flag generation in this PR #836. I think that PR was a necessary first step in us rethinking the flag generation, so I super appreciate that work and love that it was done ✨
I think what we've been doing lately is expanding upon that idea behind that PR ^ and "normalizing" the flag code. So the next step in this process is: should we consider removing the flag generation entirely? I think we could keep the essence of flag generation, by adding tests that ensure the flags all have some attributes defined.
Some motivations behind removing auto-generation:
@AudriusButkevicius has mentioned supporting this in passing.
The text was updated successfully, but these errors were encountered: