Hi,
I understand that secondaryFiles in a CommandInputParameter can be a convenience function as input files can be specified implicitly when they have filenames that, for example, share a prefix with the primary input file. But my understanding is that a CommandLineTool with secondaryFiles in one of the CommandInputParameters cannot be used in a workflow, as the name of the secondaryFiles (i.e. the name of the primary input file) may not be known yet at submission time. I saw that related questions on biostars regarding the use of secondaryFiles were answered with ideas for workarounds for this problem. I have the impression that the use of patterns in secondaryFiles defeats the idea of being able to compose new workflows by connecting Workflows and {CommandLine,Expression}Tools!?
I don't believe this should be a problem in CWL, this should be supported:
Could you possibly provide a link to the biostars questions you refer to?
I was referring to this question: CWL passing secondary files in a workflow