-
Notifications
You must be signed in to change notification settings - Fork 152
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
Inherit no_version for enum variants #242
Comments
By the way, it looks like a bug - |
That's because the enum can be transformed to a |
I'll see if we can catch this situation. I also think that |
@TeXitoi so what do you think about it? It can be implemented almost for no effort. |
Then OK for it |
In my non-Cargo build environment I end up with a lot of noise from no_version attributes. For subcommands, if the outer enum is no_version I think I shouldn't need to specify no_version as well for each of the command variants.
Currently
derive(StructOpt)
produces an error if any of the no_version attrs here are removed:The text was updated successfully, but these errors were encountered: