]> git.donarmstrong.com Git - mothur.git/blobdiff - nocommands.cpp
changes while testing
[mothur.git] / nocommands.cpp
index 5cf5a56f8161da1fa81fa3c371900fb2d806b626..7df8edc351f2c9b799739832913b961c65726714 100644 (file)
 
 //**********************************************************************************************************************
 
-NoCommand::NoCommand(string option){}
-
-//**********************************************************************************************************************
-
-NoCommand::~NoCommand(){}
+NoCommand::NoCommand(string option)  {}
 
 //**********************************************************************************************************************
 
 int NoCommand::execute(){
        //Could choose to give more help here?fdsah
-       mothurOut("Invalid command.\n");
-       
-       CommandFactory* valid = new CommandFactory();
+       cout << "Invalid command.\n";
+   
+       CommandFactory* valid =  CommandFactory::getInstance();
        valid->printCommands(cout);
-       delete valid;
        
        return 0;
 }