]> git.donarmstrong.com Git - mothur.git/blobdiff - nocommands.cpp
a few modifications for 1.9
[mothur.git] / nocommands.cpp
index 5cf5a56f8161da1fa81fa3c371900fb2d806b626..459ac5cfe8d0d79ff86569c4c090a0ae84d6c52c 100644 (file)
@@ -11,7 +11,7 @@
 
 //**********************************************************************************************************************
 
-NoCommand::NoCommand(string option){}
+NoCommand::NoCommand(string option)  {}
 
 //**********************************************************************************************************************
 
@@ -21,11 +21,10 @@ NoCommand::~NoCommand(){}
 
 int NoCommand::execute(){
        //Could choose to give more help here?fdsah
-       mothurOut("Invalid command.\n");
+       cout << "Invalid command.\n";
        
-       CommandFactory* valid = new CommandFactory();
+       CommandFactory* valid =  CommandFactory::getInstance();
        valid->printCommands(cout);
-       delete valid;
        
        return 0;
 }