Skip to content

Commit 9a31d38

Browse files
authored
fix: qtl analysis option --debug should require -t (#314)
1 parent 82b1b8c commit 9a31d38

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

bin/qtl-analysis

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ usageVerbose() {
9696
--skip-mya skip timelines which require MYA (needed if running offsite or on CI)
9797
9898
--debug enable debug mode: run a single timeline with stderr and stdout printed to screen;
99-
it is best to use this with the '-t' option to debug specific timeline issues
99+
use this with the '-t' option to debug specific timeline issues
100100
101101
-h, --help print this usage guide
102102
""" >&2
@@ -184,6 +184,10 @@ if ${modes['debug']}; then
184184
printWarning "DEBUG mode used; timelines will NOT be published"
185185
enableAna=true
186186
enablePub=false
187+
if [ -z "$singleTimeline" ]; then
188+
printError "DEBUG mode used, but you need to also choose a timeline with '-t'"
189+
exit 100
190+
fi
187191
fi
188192

189193
##################################################################################

0 commit comments

Comments
 (0)