X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=removeotuscommand.cpp;h=0fbed18b8be943fc4134cc18555c5a25cbd25b74;hb=7bf9a81bba76538ecaf351ae208de3da4bf1b6dd;hp=6c8cf6a76561c151eead8d4ac151c286ba0283ad;hpb=1d898dc6edaf9e9f287fab53bf1f21fb29757a17;p=mothur.git diff --git a/removeotuscommand.cpp b/removeotuscommand.cpp index 6c8cf6a..0fbed18 100644 --- a/removeotuscommand.cpp +++ b/removeotuscommand.cpp @@ -75,6 +75,7 @@ RemoveOtusCommand::RemoveOtusCommand(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(); @@ -133,7 +134,8 @@ RemoveOtusCommand::RemoveOtusCommand(string option) { //check for required parameters accnosfile = validParameter.validFile(parameters, "accnos", true); if (accnosfile == "not open") { abort = true; } - else if (accnosfile == "not found") { accnosfile = ""; } + else if (accnosfile == "not found") { accnosfile = ""; } + else { m->setAccnosFile(accnosfile); } groupfile = validParameter.validFile(parameters, "group", true); if (groupfile == "not open") { abort = true; } @@ -141,7 +143,7 @@ RemoveOtusCommand::RemoveOtusCommand(string option) { groupfile = m->getGroupFile(); if (groupfile != "") { m->mothurOut("Using " + groupfile + " as input file for the group parameter."); m->mothurOutEndLine(); } else { m->mothurOut("You have no current group file and the group parameter is required."); m->mothurOutEndLine(); abort = true; } - } + }else { m->setGroupFile(groupfile); } listfile = validParameter.validFile(parameters, "list", true); if (listfile == "not open") { abort = true; } @@ -149,7 +151,7 @@ RemoveOtusCommand::RemoveOtusCommand(string option) { listfile = m->getListFile(); if (listfile != "") { m->mothurOut("Using " + listfile + " as input file for the list parameter."); m->mothurOutEndLine(); } else { m->mothurOut("You have no current list file and the list parameter is required."); m->mothurOutEndLine(); abort = true; } - } + }else { m->setListFile(listfile); } groups = validParameter.validFile(parameters, "groups", false); if (groups == "not found") { groups = ""; }