]> git.donarmstrong.com Git - mothur.git/blobdiff - nocommands.cpp
added homova command
[mothur.git] / nocommands.cpp
index b519d77459e984020ba94a3331ba8851b076e0ae..eab873ba1eec6bc6a01b748f4ce6b441c9e1f4f1 100644 (file)
@@ -9,9 +9,42 @@
 
 #include "nocommands.h"
 
+//**********************************************************************************************************************
+vector<string> NoCommand::getValidParameters(){        
+       try {
+               vector<string> myArray; 
+               return myArray;
+       }
+       catch(exception& e) {
+               m->errorOut(e, "NoCommand", "getValidParameters");
+               exit(1);
+       }
+}
+//**********************************************************************************************************************
+vector<string> NoCommand::getRequiredParameters(){     
+       try {
+               vector<string> myArray;
+               return myArray;
+       }
+       catch(exception& e) {
+               m->errorOut(e, "NoCommand", "getRequiredParameters");
+               exit(1);
+       }
+}
+//**********************************************************************************************************************
+vector<string> NoCommand::getRequiredFiles(){  
+       try {
+               vector<string> myArray;
+               return myArray;
+       }
+       catch(exception& e) {
+               m->errorOut(e, "NoCommand", "getRequiredFiles");
+               exit(1);
+       }
+}
 //**********************************************************************************************************************
 
-NoCommand::NoCommand(string option){}
+NoCommand::NoCommand(string option)  {}
 
 //**********************************************************************************************************************
 
@@ -21,9 +54,9 @@ NoCommand::~NoCommand(){}
 
 int NoCommand::execute(){
        //Could choose to give more help here?fdsah
-       mothurOut("Invalid command.\n");
-       
-       CommandFactory* valid =  CommandFactory::getInstance();
+       cout << "Invalid command.\n";
+   
+               CommandFactory* valid =  CommandFactory::getInstance();
        valid->printCommands(cout);
        
        return 0;