jcommander
jcommander copied to clipboard
Fix #575: Scope IParametersValidator to Object-Specific Parameters
This PR fixes issue #575, where an IParametersValidator on a @ParametersDelegate object incorrectly saw all parameters, including those from the top-level object (e.g., --argtop alongside --arg1 and --arg2). The fix scopes validators to their respective object’s parameters, improving intuitiveness and enabling easier mutex group implementation, as noted by @ekpdt.
@arturobernalg Thank you for your contribution. Unfortunately build fails in your code. https://github.com/cbeust/jcommander/actions/runs/13505241219/job/38819806044?pr=595#step:5:53. Kindly asking for a fix. Thanks.
@arturobernalg Kindly asking you to fix your code. Thanks.