cbeust / jcommander

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

Support for Java Records #560

Open mkarg opened 1 year ago

mkarg commented 1 year ago

Java records come very handy to hold parameter values as a replacement for custom classes, as much less custom code is to be written.

Unfortunately JCommander does not allow to put annotations on record components.

To allow the use of records, JCommander should extend the target location of @Parameter to include RECORD_COMPONENT.

mkarg commented 1 year ago

@cbeust WDYT?