I have a command with subcommands, which are registered declaratively, and I'm interested in using this style of command line processing:
List<Object> parsed = commandLine.parseWithHandler(new RunAll(), args);
However, for unit testing purposes, I want to access the subcommand object to see if it has the correct options set, etc. Is there a way to access the subcommand object when using RunAll
?
(See also https://github.com/remkop/picocli/issues/489 )