jcommander icon indicating copy to clipboard operation
jcommander copied to clipboard

Support for Java Records

Open mkarg opened this issue 2 years ago • 1 comments

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 avatar Jun 18 '23 09:06 mkarg

@cbeust WDYT?

mkarg avatar Jun 18 '23 09:06 mkarg