X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=helpcommand.cpp;h=24d587b60ab7115b06379a98e9076ad3c6999c0f;hb=134a9c1275862a6b3ea10a2c0f11965c0a535854;hp=fc2f291548e07ebc41e03bf121760d23f2c4a16d;hpb=c4fb347858dd8cfea4d2933f429fff4130dca65b;p=mothur.git diff --git a/helpcommand.cpp b/helpcommand.cpp index fc2f291..24d587b 100644 --- a/helpcommand.cpp +++ b/helpcommand.cpp @@ -9,14 +9,46 @@ #include "helpcommand.h" +//********************************************************************************************************************** +vector HelpCommand::getValidParameters(){ + try { + + vector myArray; + return myArray; + } + catch(exception& e) { + m->errorOut(e, "HelpCommand", "getValidParameters"); + exit(1); + } +} +//********************************************************************************************************************** +vector HelpCommand::getRequiredParameters(){ + try { + vector myArray; + return myArray; + } + catch(exception& e) { + m->errorOut(e, "HelpCommand", "getRequiredParameters"); + exit(1); + } +} +//********************************************************************************************************************** +vector HelpCommand::getRequiredFiles(){ + try { + vector myArray; + return myArray; + } + catch(exception& e) { + m->errorOut(e, "HelpCommand", "getRequiredFiles"); + exit(1); + } +} //********************************************************************************************************************** -HelpCommand::HelpCommand(string option){ - +HelpCommand::HelpCommand(string option) { - if (option != "") { mothurOut("There are no valid parameters for the help() command."); mothurOutEndLine(); } + validCommands = CommandFactory::getInstance(); - validCommands = new CommandFactory(); } //********************************************************************************************************************** @@ -26,13 +58,10 @@ HelpCommand::~HelpCommand(){} //********************************************************************************************************************** int HelpCommand::execute(){ - validCommands->printCommands(cout); - mothurOut("For more information about a specific command type 'commandName(help)' i.e. 'read.dist(help)'"); mothurOutEndLine(); - - delete validCommands; + m->mothurOut("For more information about a specific command type 'commandName(help)' i.e. 'read.dist(help)'"); m->mothurOutEndLine(); - mothurOutEndLine(); mothurOut("For further assistance please refer to the Mothur manual on our wiki at http://www.mothur.org/wiki, or contact Pat Schloss at mothur.bugs@gmail.com.\n"); + m->mothurOutEndLine(); m->mothurOut("For further assistance please refer to the Mothur manual on our wiki at http://www.mothur.org/wiki, or contact Pat Schloss at mothur.bugs@gmail.com.\n"); return 0; }