//**********************************************************************************************************************
-QuitCommand::QuitCommand(){}
+QuitCommand::QuitCommand(string option) {
+ abort = false;
+
+ //allow user to run help
+ if(option == "help") { help(); abort = true; }
+
+}
+//**********************************************************************************************************************
+
+void QuitCommand::help(){
+ try {
+ 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) {
+ m->errorOut(e, "QuitCommand", "help");
+ exit(1);
+ }
+}
//**********************************************************************************************************************
//**********************************************************************************************************************
int QuitCommand::execute(){
+ if (abort == true) { return 0; }
return 1;
}