X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=helpcommand.cpp;h=36ce2b760e266a790bba56e9b4d5adf5f5b493a5;hb=1d7a10dc3dafd1606d6255bdb54e02429cbee47c;hp=fc2f291548e07ebc41e03bf121760d23f2c4a16d;hpb=c4fb347858dd8cfea4d2933f429fff4130dca65b;p=mothur.git diff --git a/helpcommand.cpp b/helpcommand.cpp index fc2f291..36ce2b7 100644 --- a/helpcommand.cpp +++ b/helpcommand.cpp @@ -11,12 +11,10 @@ //********************************************************************************************************************** -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 +24,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; }