cbeust / jcommander

Command line parsing framework for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for Java Records

mkarg opened this issue · 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.