tower-cli
tower-cli copied to clipboard
Allow to pass single parameters at `tw launch` command
Description
Current launch version only allow to pass parameters using a file, with the option --params. To mimic as much as possible the nextflow run ... command here we propose to add the option to pass pipeline parameters from the command line.
Example usage
tw launch pditommaso/nf-sleep -P timeout=20
or
tw launch pditommaso/nf-sleep --param timeout=20
Implementation details.
- See picocli map options here.
- We propose to use
-Puppercase, to avoid confusion with thenextflow run ... -pthat refers to profile. - If the user provides a
paramsfile and also command line parameters, the command line parameters should override the file parameters.
I would really like this as well! Especially for input and outdir parameters which change for every launch.