X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getcurrentcommand.cpp;h=86046b64375ebd151c27e5909c0efdc9d0149bbf;hb=e10c72304ee071c0c40e0218a06d89dc4731cbc2;hp=7bfae208ad9eb6b1a94ba92e2ae028c2f986f24a;hpb=ca9ac1d80c62f57270b0dcd49410ebe08a8aecd6;p=mothur.git diff --git a/getcurrentcommand.cpp b/getcurrentcommand.cpp index 7bfae20..86046b6 100644 --- a/getcurrentcommand.cpp +++ b/getcurrentcommand.cpp @@ -59,6 +59,7 @@ GetCurrentCommand::GetCurrentCommand(string option) { //allow user to run help if(option == "help") { help(); abort = true; calledHelp = true; } + else if(option == "citation") { citation(); abort = true; calledHelp = true;} else { vector myArray = setParameters(); @@ -134,7 +135,15 @@ int GetCurrentCommand::execute(){ }else if (types[i] == "accnos") { m->setAccnosFile(""); }else if (types[i] == "taxonomy") { - m->setTaxonomyFile(""); + m->setTaxonomyFile(""); + }else if (types[i] == "flow") { + m->setFlowFile(""); + }else if (types[i] == "biom") { + m->setBiomFile(""); + }else if (types[i] == "count") { + m->setCountTableFile(""); + }else if (types[i] == "processors") { + m->setProcessors("1"); }else if (types[i] == "all") { m->clearCurrentFiles(); }else { @@ -143,8 +152,10 @@ int GetCurrentCommand::execute(){ } } - m->mothurOutEndLine(); m->mothurOut("Current files saved by mothur:"); m->mothurOutEndLine(); - m->printCurrentFiles(); + if (m->hasCurrentFiles()) { + m->mothurOutEndLine(); m->mothurOut("Current files saved by mothur:"); m->mothurOutEndLine(); + m->printCurrentFiles(); + } return 0; }