KwanLab / Autometa

Autometa: Automated Extraction of Genomes from Shotgun Metagenomes
https://autometa.readthedocs.io
Other
40 stars 15 forks source link

🍏 Add fail safe for `--resume` flag #230

Closed evanroyrees closed 2 years ago

evanroyrees commented 2 years ago

Quickly fail the nextflow workflow if the user has provided --resume instead of -resume

evanroyrees commented 2 years ago

Turns out, this behavior already exists:

(autometa) evan@Kwan-Bioinformatics:~/Autometa$ nextflow run /home/evan/Autometa -profile "slurm" -params-file "nf-params.json" -resume --mock_test --resume
N E X T F L O W  ~  version 21.10.6
Launching `/home/evan/Autometa/main.nf` [nauseous_poisson] - revision: e2af028fef
ERROR: You used a core Nextflow option with two hyphens: '--resume'. Please resubmit with '-resume'

WARN: Found unexpected parameters:
* --resume: true
- Ignore this warning: params.schema_ignore_params = "resume"