]> git.donarmstrong.com Git - mothur.git/blobdiff - nocommands.cpp
changes while testing
[mothur.git] / nocommands.cpp
index 9ac565bd49088f594a03e30351279b4231d242ea..7df8edc351f2c9b799739832913b961c65726714 100644 (file)
@@ -8,25 +8,19 @@
  */
 
 #include "nocommands.h"
-#include "validcommands.h"
 
 //**********************************************************************************************************************
 
-NoCommand::NoCommand(string option){}
-
-//**********************************************************************************************************************
-
-NoCommand::~NoCommand(){}
+NoCommand::NoCommand(string option)  {}
 
 //**********************************************************************************************************************
 
 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;
 }