]> git.donarmstrong.com Git - mothur.git/blobdiff - quitcommand.cpp
working on chimera.slayer
[mothur.git] / quitcommand.cpp
index 6b90f4b15c1cf64ae04bed98db42138f0edcf2d7..85e8b526c455cfb5ee8c4ca50b64daec92dd6c24 100644 (file)
 #include "quitcommand.h"
 
 //**********************************************************************************************************************
+QuitCommand::QuitCommand(string option) {
+               abort = false; calledHelp = false;   
+               
+               //allow user to run help
+               if(option == "help") { help(); abort = true; calledHelp = true; }
 
-QuitCommand::QuitCommand(){}
-
+}
 //**********************************************************************************************************************
-
 QuitCommand::~QuitCommand(){}
-
 //**********************************************************************************************************************
-
 int QuitCommand::execute(){
+       if (abort == true) { return 0; }
        return 1;
 }
-
 //**********************************************************************************************************************