X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=nocommands.cpp;h=eab873ba1eec6bc6a01b748f4ce6b441c9e1f4f1;hb=c53ef46b40b97c00e32bfd8c3924ce8c51b5cd7b;hp=9ac565bd49088f594a03e30351279b4231d242ea;hpb=0470f6d037aacb3563c3f7010708120a4a67d4e6;p=mothur.git diff --git a/nocommands.cpp b/nocommands.cpp index 9ac565b..eab873b 100644 --- a/nocommands.cpp +++ b/nocommands.cpp @@ -8,11 +8,43 @@ */ #include "nocommands.h" -#include "validcommands.h" +//********************************************************************************************************************** +vector NoCommand::getValidParameters(){ + try { + vector myArray; + return myArray; + } + catch(exception& e) { + m->errorOut(e, "NoCommand", "getValidParameters"); + exit(1); + } +} +//********************************************************************************************************************** +vector NoCommand::getRequiredParameters(){ + try { + vector myArray; + return myArray; + } + catch(exception& e) { + m->errorOut(e, "NoCommand", "getRequiredParameters"); + exit(1); + } +} +//********************************************************************************************************************** +vector NoCommand::getRequiredFiles(){ + try { + vector myArray; + return myArray; + } + catch(exception& e) { + m->errorOut(e, "NoCommand", "getRequiredFiles"); + exit(1); + } +} //********************************************************************************************************************** -NoCommand::NoCommand(string option){} +NoCommand::NoCommand(string option) {} //********************************************************************************************************************** @@ -22,11 +54,10 @@ NoCommand::~NoCommand(){} int NoCommand::execute(){ //Could choose to give more help here?fdsah - cout << "Invalid command." << "\n"; - - ValidCommands* valid = new ValidCommands(); + cout << "Invalid command.\n"; + + CommandFactory* valid = CommandFactory::getInstance(); valid->printCommands(cout); - delete valid; return 0; }