From 5e08ded984cb278e60347a1adc7273199e4a3b1a Mon Sep 17 00:00:00 2001 From: "Brian P. Walenz" Date: Thu, 27 Sep 2018 03:36:40 -0400 Subject: [PATCH] Allow wildcard in -R: '-R *fasta'. --- src/haplotyping/splitHaplotype.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/haplotyping/splitHaplotype.C b/src/haplotyping/splitHaplotype.C index 3701f1766..abe6b59b1 100644 --- a/src/haplotyping/splitHaplotype.C +++ b/src/haplotyping/splitHaplotype.C @@ -637,7 +637,8 @@ main(int argc, char **argv) { decodeRange(argv[++arg], G->_idMin, G->_idMax); } else if (strcmp(argv[arg], "-R") == 0) { - G->_seqs.push(new dnaSeqFile(argv[++arg])); + while ((arg < argc) && (fileExists(argv[arg+1]))) + G->_seqs.push(new dnaSeqFile(argv[++arg])); } else if (strcmp(argv[arg], "-H") == 0) { // HAPLOTYPE SPECIFICATION G->_haps.push_back(new hapData(argv[++arg]));