]> git.donarmstrong.com Git - mothur.git/blobdiff - helpcommand.cpp
added sorted parameter to get.oturep, added error checking to chimera classes in...
[mothur.git] / helpcommand.cpp
index fc2f291548e07ebc41e03bf121760d23f2c4a16d..e0ef2a3ebdf20de0d8a7e3ede3ad4a5f14857da1 100644 (file)
@@ -16,7 +16,7 @@ HelpCommand::HelpCommand(string option){
        
        if (option != "") { mothurOut("There are no valid parameters for the help() command."); mothurOutEndLine();  }
        
-       validCommands = new CommandFactory();
+       validCommands = CommandFactory::getInstance();
 }
 
 //**********************************************************************************************************************
@@ -30,8 +30,6 @@ 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;
-       
        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");
        return 0;
 }