cwltool icon indicating copy to clipboard operation
cwltool copied to clipboard

--help output when input requirements are not met

Open jjkoehorst opened this issue 3 years ago • 1 comments

This was discussed in the cwltool-dev channel...

When starting a workflow and you failed to match the requirements it would be great if the extended output can be added after that error message.

For example:

Invalid job input record:
unlock/infrastructure/cwl/workflows/workflow_nanopore_assembly.cwl:122:3: Missing required input
                                                                          parameter 'basecall_model'

Could be expanded with the complete --help output after that. In addition it could be nice if an * was shown after variables that are obligatory.

jjkoehorst avatar Jul 07 '22 09:07 jjkoehorst

In addition, I also noticed it stops after the first requirement check that fails. When fixing that and you run it again it will give a new error of a missing variable. Adding the --help would help to some extend so the user can more easily see what is required but the check should if possible also check all requirements...

jjkoehorst avatar Jul 07 '22 10:07 jjkoehorst