Closed rrahn closed 5 years ago
IIRC in the CTD Schema there is an attribute isList (additionally to the entry type ITEMLIST) that specifies how multiple values are expanded.
Well yes and it expands to: --list val1 val2
instead of --list val1 --list val2
. How are you handling multiple list values in your argument parser?
The point is, that in the current version parameterlist values are put into a single linked list and added to the array list for the parameters to be expanded. Then in CLICommandGenerator:145-152 the values are prefixed with the list option name, but since all values are stored in a single linked list instead of each vlaue in it's own single linked list the prefix is only added once. In general there must have been some meaning behind this but obviously it was never tested with SeqAn apps in the first place.
When using the LocalToolExecutor the commands are generated from the CLI Elements of the node model. If a tool was configured with multiple values for a respective list parameter, it is translated into the shell command:
--list-opt val1 val2
. This however fails for the SeqAn argument parser, which requires that each list option is prefixed with the list option name:--list-opt val1 --list-opt val2
.