Skip to content

Commit 429e85d

Browse files
committed
main - handle helpMsg flag
1 parent 4782df5 commit 429e85d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

main.nf

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,17 @@ if (params.version) {
2929
exit(0)
3030
}
3131

32+
// Show a custom help message and exit
33+
if (params.helpMsg){
34+
include { helpMsg } from './modules/help_message.nf'
35+
helpMsg()
36+
exit(0)
37+
}
38+
3239

3340
// Enable topic channels
3441
nextflow.preview.topic = true
3542

36-
// Include functions
37-
include { helpMsg } from './modules/help_message.nf'
38-
39-
4043
// Include workflows
4144
// NB! `include` statements are static, meaning they are resolved at compile time rather than at runtime!
4245
include { S1 } from './workflows/STEP1.nf'

0 commit comments

Comments
 (0)