cbeust / jcommander

Command line parsing framework for Java
Apache License 2.0
1.96k stars 334 forks source link

Have a default validator #507

Open Chuckame opened 4 years ago

Chuckame commented 4 years ago

Hello there, great lib ! 😄

So, it can be cool to have a default validation (like a fallback). Is this way, we are able to globalize the validation using javax validation annotations (like @NotBlank on Strings, @Max(10) for a maximum limit for a number, etc...) instead of precising on each param which validator class we want (boring when having many params) What do you think ? I can help for programming this feature

Harlan1997 commented 3 years ago

Interesting point. Could you give me an example? I would like to work on this issue.