Using the Java port of the Argparse4j library, how can I pass a list as a cli argument? I know there are answers to this querstion in Python, but am looking for a Java example.
For example how can I access the --list argument in this code as an actual Java List type.
ArgumentParser parser = ArgumentParsers.newFor("main").build();
parser.addArgument("-l", "--list")
.help("Argument list to parse");
Then run the code with
java Main --list foo bar fizz