X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=splitgroupscommand.cpp;fp=splitgroupscommand.cpp;h=26716554decad148623563d4b120148325b7477a;hb=16abd6271c455bd01b34ff89a2e3641bef0fa128;hp=113439c9220429f4d9466a72a579c5aa2caa10ae;hpb=896a4f281982a3c2889f6ce6d73be997072aceae;p=mothur.git diff --git a/splitgroupscommand.cpp b/splitgroupscommand.cpp index 113439c..2671655 100644 --- a/splitgroupscommand.cpp +++ b/splitgroupscommand.cpp @@ -125,7 +125,7 @@ SplitGroupCommand::SplitGroupCommand(string option) { namefile = validParameter.validFile(parameters, "name", true); - if (namefile == "not open") { abort = true; } + if (namefile == "not open") { namefile = ""; abort = true; } else if (namefile == "not found") { namefile = ""; } else { m->setNameFile(namefile); } @@ -151,6 +151,11 @@ SplitGroupCommand::SplitGroupCommand(string option) { //if the user changes the output directory command factory will send this info to us in the output parameter outputDir = validParameter.validFile(parameters, "outputdir", false); if (outputDir == "not found"){ outputDir = m->hasPath(groupfile); } + + if (namefile == "") { + vector files; files.push_back(fastafile); + parser.getNameFile(files); + } } }