jcommander icon indicating copy to clipboard operation
jcommander copied to clipboard

Fix #575: Scope IParametersValidator to Object-Specific Parameters

Open arturobernalg opened this issue 9 months ago • 1 comments

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 avatar Feb 24 '25 18:02 arturobernalg

@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.

mkarg avatar Mar 15 '25 16:03 mkarg

@arturobernalg Kindly asking you to fix your code. Thanks.

mkarg avatar Aug 10 '25 11:08 mkarg