Skip to content

Tag: picocli

How do I transfer my parsed array data from one class to another?

My program uses Picocli to parse XML data and store it in an ArrayList. For some reason, the information gets removed when I try to access it from another class. I run the code below, and it shows the elements just fine: So I try to access sourceArray from another class: and results in variables being [], thu…

make picocli parse local date format

PicoCLI accepts 2019-04-26 as input for a LocalDate variable, but it does not accept the German Date format like 26.04.2019. For that you need: How do you tell to PicoCLI to use this formatter and not depend on US date input? Answer You can define a custom type converter, either for a specific option, or glob…