Open mkarg opened 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.
@Parameter
RECORD_COMPONENT
@cbeust WDYT?
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 includeRECORD_COMPONENT
.