]> git.donarmstrong.com Git - mothur.git/blobdiff - quitcommand.cpp
took out couts
[mothur.git] / quitcommand.cpp
index 99dc46be30ca9c282d82474e5021bdf4fc7f3c33..462fe8fbf43e7f47a93ddefeb1058095cf636f86 100644 (file)
@@ -9,26 +9,57 @@
 
 #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){
-               abort = false;
+QuitCommand::QuitCommand(string option) {
+               abort = false; calledHelp = false;   
                
                //allow user to run help
-               if(option == "help") { help(); abort = true; }
-               
-               else if (option != "") { mothurOut("There are no valid parameters for the quit command."); mothurOutEndLine();  abort = true;  }
+               if(option == "help") { help(); abort = true; calledHelp = true; }
 
 }
 //**********************************************************************************************************************
 
 void QuitCommand::help(){
        try {
-                mothurOut("The quit command will terminate mothur and should be in the following format: \n"); 
-                mothurOut("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) {
-               errorOut(e, "QuitCommand", "help");
+               m->errorOut(e, "QuitCommand", "help");
                exit(1);
        }
 }