I would need to implement a command line wrapper for which the arguments of the parameter "-myinputfiles" is a list of files. What is the InputSpec of such an attribute?
When searching before asking the question here, i found two possible forms of InputSpec, as shown below. What would be the best solution?
in_files = traits.List(File(exists=True), argstr='-myinputfiles %s', minlen=1, maxlen=3,
desc="A list of input files which can be 1 to 3",
mandatory=True)
in_files = InputMultiPath(traits.Either(traits.List(File(exists=True), minlen=2, maxlen=3), File(exists=True)),
argstr='-myinputfiles %s',
desc='A list of input files which can be 1 to 3',
mandatory=True)