Skip to content

Commit

Permalink
update help message to use nf-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
nebfield committed Jun 14, 2024
1 parent 0683691 commit 44d31e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ nextflow.enable.dsl = 2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

include { paramsHelp } from 'plugin/nf-schema'

// Print help message if needed
if (params.help) {
def logo = NfcoreTemplate.logo(workflow, params.monochrome_logs)
def citation = '\n' + WorkflowMain.citation(workflow) + '\n'
def String command = '\n' + "\$ nextflow run ${workflow.manifest.name} -profile test,docker" + '\n'
log.info logo + command + citation + NfcoreTemplate.dashedLine(params.monochrome_logs)
System.exit(0)
log.info paramsHelp("nextflow run pgscatalog/pgsc_calc --input input_file.csv")
log.info "See https://pgsc-calc.readthedocs.io/en/latest/getting-started.html for more help"
exit 0
}

WorkflowMain.initialise(workflow, params, log, args)
Expand Down

0 comments on commit 44d31e8

Please sign in to comment.