-
Notifications
You must be signed in to change notification settings - Fork 425
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
DuplicateOptionAnnotationsException thrown on mixinStandardHelpOptions by picocli-codegen #1316
Comments
Hi @charphi , this is by design: putting This is documented in the user manual: https://picocli.info/#_inherited_command_attributes Other options are not inherited. |
Oh, I see what you mean now; since Perhaps we should add a WARN admonition to the Inherited Command Attributes section that this is a known limitation. |
Ah wait, I think I understand what you mean (this time for real 🤣 - at least I hope...) There is an inconsistency: at runtime, the above So, we should fix the annotation processor to not fail on the above |
I pushed a fix to master. Please verify when you have a chance. Thinking to release 4.6.2 soon, that includes this fix. |
I've just tested and it works. Thanks! |
…own on `mixinStandardHelpOptions` for subcommands when parent has `scope = INHERIT` by `picocli-codegen` annotation processor. Closes remkop#1316
…ion` thrown on `mixinStandardHelpOptions` for subcommands when parent has `scope = INHERIT` by `picocli-codegen` annotation processor." This reverts commit 735f951.
…ion` thrown on `mixinStandardHelpOptions` for subcommands when parent has `scope = INHERIT` by `picocli-codegen` annotation processor." This reverts commit 735f951.
DuplicateOptionAnnotationsException
is thrown by picocli-codegen whenmixinStandardHelpOptions
is set totrue
on both a command with scope INHERIT and a subcommand.Example:
Stacktrace:
The text was updated successfully, but these errors were encountered: