X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getlabelcommand.cpp;h=3191d5dda80670b8490203032e35170cf7642044;hb=095a4c7aed0cf5ef79eaf28f0d79d3aa51c2811e;hp=971feb4b33f70f44bcfbabdf6de55caf17bda3cd;hpb=260ae19c36cb11a53ddc5a75b5e507f8dd8b31d6;p=mothur.git diff --git a/getlabelcommand.cpp b/getlabelcommand.cpp index 971feb4..3191d5d 100644 --- a/getlabelcommand.cpp +++ b/getlabelcommand.cpp @@ -9,15 +9,50 @@ #include "getlabelcommand.h" +//********************************************************************************************************************** +vector GetlabelCommand::getValidParameters(){ + try { + string Array[] = {"outputdir","inputdir"}; + vector myArray (Array, Array+(sizeof(Array)/sizeof(string))); + return myArray; + } + catch(exception& e) { + m->errorOut(e, "GetlabelCommand", "getValidParameters"); + exit(1); + } +} +//********************************************************************************************************************** +vector GetlabelCommand::getRequiredParameters(){ + try { + vector myArray; + return myArray; + } + catch(exception& e) { + m->errorOut(e, "GetlabelCommand", "getRequiredParameters"); + exit(1); + } +} +//********************************************************************************************************************** +vector GetlabelCommand::getRequiredFiles(){ + try { + string Array[] = {"list","rabund","sabund", "or"}; + vector myArray (Array, Array+(sizeof(Array)/sizeof(string))); + return myArray; + } + catch(exception& e) { + m->errorOut(e, "GetlabelCommand", "getRequiredFiles"); + exit(1); + } +} //********************************************************************************************************************** GetlabelCommand::GetlabelCommand(string option) { try { globaldata = GlobalData::getInstance(); - abort = false; + abort = false; calledHelp = false; //allow user to run help - if(option == "help") { help(); abort = true; } + if(option == "help") { help(); abort = true; calledHelp = true; } else { if ((globaldata->getListFile() == "") && (globaldata->getRabundFile() == "") && (globaldata->getSabundFile() == "")) { m->mothurOut("You must read a list, sabund or rabund before you can use the get.label command."); m->mothurOutEndLine(); abort = true; } @@ -55,7 +90,7 @@ GetlabelCommand::~GetlabelCommand(){ int GetlabelCommand::execute(){ try { - if (abort == true) { return 0; } + if (abort == true) { if (calledHelp) { return 0; } return 2; } filename = globaldata->inputFileName; ifstream in;