You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this the intended behaviour? Is there any way to make this work? I think the last parameter is supposed to be marked with index=4. When specifiying @Parameters(index="4", arity = "1"), a ParameterIndexGapExceptionis thrown, however.
Side note:
Using the code above, I set mixinStandardHelpOptions = truefor the command. Usage help is now:
Yes, there are some @Ignore-ed tests in ArgGroupTest for cases like this, where positional parameters are defined inside a group as well as outside one. It is documented as one of the limitations of argument groups.
I briefly looked at it but have not spent that much time on it. It may be difficult to get this to work...
The note about the synopsis is also interesting. Looks like a separate issue. That one should be fixable (but haven't looked in detail).
As of picocli 4.3, repeatable ArgGroups can now define positional parameters. I'm encountering difficulties while using this new feature:
When running this code, I'm getting:
Is this the intended behaviour? Is there any way to make this work? I think the last parameter is supposed to be marked with
index=4
. When specifiying@Parameters(index="4", arity = "1")
, aParameterIndexGapException
is thrown, however.Side note:
Using the code above, I set
mixinStandardHelpOptions = true
for the command. Usage help is now:Usage: grades (<name> <grade>) (<name> <grade>) [-hV] <code>
The option
[-hV]
is printed in between the parameters, which is unfortunate IMHO.The text was updated successfully, but these errors were encountered: