X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=getlineagecommand.cpp;h=4948a1a095343748dde3f467ff59c9ce5e050702;hb=8173238f9f94af9baab8471de58bed7c8830948d;hp=eaa8d40f3d6b0ec28eb59f107ac16ba9aa0fc61e;hpb=794b3f789d6160c99b75edb9cf9af5cf3df4b9da;p=mothur.git diff --git a/getlineagecommand.cpp b/getlineagecommand.cpp index eaa8d40..4948a1a 100644 --- a/getlineagecommand.cpp +++ b/getlineagecommand.cpp @@ -182,7 +182,11 @@ GetLineageCommand::GetLineageCommand(string option) { else if (taxfile == "not found") { taxfile = ""; m->mothurOut("The taxonomy parameter is required for the get.lineage command."); m->mothurOutEndLine(); abort = true; } string usedDups = "true"; - string temp = validParameter.validFile(parameters, "dups", false); if (temp == "not found") { temp = "false"; usedDups = ""; } + string temp = validParameter.validFile(parameters, "dups", false); + if (temp == "not found") { + if (namefile != "") { temp = "true"; } + else { temp = "false"; usedDups = ""; } + } dups = m->isTrue(temp); taxons = validParameter.validFile(parameters, "taxon", false);