]> git.donarmstrong.com Git - mothur.git/blobdiff - quitcommand.cpp
added group option to trim.seqs so you can provide your own groupfile instead of...
[mothur.git] / quitcommand.cpp
index 87c2fa0672478e9899c60887ff0aa459f79551ee..0dd2dec189317e56518fbfafce1c93a3c7a84f1b 100644 (file)
@@ -9,32 +9,59 @@
 
 #include "quitcommand.h"
 
+//**********************************************************************************************************************
+vector<string> QuitCommand::getValidParameters(){      
+       try {
+               vector<string> myArray; 
+               return myArray;
+       }
+       catch(exception& e) {
+               m->errorOut(e, "QuitCommand", "getValidParameters");
+               exit(1);
+       }
+}
+//**********************************************************************************************************************
+vector<string> QuitCommand::getRequiredParameters(){   
+       try {
+               vector<string> myArray;
+               return myArray;
+       }
+       catch(exception& e) {
+               m->errorOut(e, "QuitCommand", "getRequiredParameters");
+               exit(1);
+       }
+}
+//**********************************************************************************************************************
+vector<string> QuitCommand::getRequiredFiles(){        
+       try {
+               vector<string> myArray;
+               return myArray;
+       }
+       catch(exception& e) {
+               m->errorOut(e, "QuitCommand", "getRequiredFiles");
+               exit(1);
+       }
+}
 //**********************************************************************************************************************
 
-QuitCommand::QuitCommand(string option){
+QuitCommand::QuitCommand(string option) {
                abort = false;
                
                //allow user to run help
                if(option == "help") { help(); abort = true; }
-               
-               else if (option != "") { cout << "There are no valid parameters for the quit command." << endl;  abort = true;  }
 
 }
 //**********************************************************************************************************************
 
 void QuitCommand::help(){
        try {
-               cout << "The quit command will terminate mothur and should be in the following format: " << "\n";
-               cout << "quit() or quit" << "\n" << "\n";
+                m->mothurOut("The quit command will terminate mothur and should be in the following format: \n"); 
+                m->mothurOut("quit() or quit\n\n");
        }
        catch(exception& e) {
-               cout << "Standard Error: " << e.what() << " has occurred in the QuitCommand class Function help. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+               m->errorOut(e, "QuitCommand", "help");
                exit(1);
        }
-       catch(...) {
-               cout << "An unknown error has occurred in the QuitCommand class function help. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
-               exit(1);
-       }       
 }
 
 //**********************************************************************************************************************