Complain when bwa mem is given too many filenames

Reads in extra .fq filenames beyond "bwa mem index one.fq two.fq"
will not be aligned, so complain about such invalid usage instead.
This commit is contained in:
John Marshall 2013-06-14 14:00:24 +01:00
parent 20dc9dd41a
commit 128ffc089b
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ int main_mem(int argc, char *argv[])
else return 1;
}
if (opt->n_threads < 1) opt->n_threads = 1;
if (optind + 1 >= argc) {
if (optind + 1 >= argc || optind + 3 < argc) {
fprintf(stderr, "\n");
fprintf(stderr, "Usage: bwa mem [options] <idxbase> <in1.fq> [in2.fq]\n\n");
fprintf(stderr, "Algorithm options:\n\n");