]> git.donarmstrong.com Git - mothur.git/blobdiff - nocommands.cpp
chimeracode
[mothur.git] / nocommands.cpp
index 9ac565bd49088f594a03e30351279b4231d242ea..b519d77459e984020ba94a3331ba8851b076e0ae 100644 (file)
@@ -8,7 +8,6 @@
  */
 
 #include "nocommands.h"
-#include "validcommands.h"
 
 //**********************************************************************************************************************
 
@@ -22,11 +21,10 @@ NoCommand::~NoCommand(){}
 
 int NoCommand::execute(){
        //Could choose to give more help here?fdsah
-       cout << "Invalid command." << "\n";
+       mothurOut("Invalid command.\n");
        
-       ValidCommands* valid = new ValidCommands();
+       CommandFactory* valid =  CommandFactory::getInstance();
        valid->printCommands(cout);
-       delete valid;
        
        return 0;
 }