]> git.donarmstrong.com Git - mothur.git/blobdiff - quitcommand.cpp
changes while testing
[mothur.git] / quitcommand.cpp
index 6b90f4b15c1cf64ae04bed98db42138f0edcf2d7..2c302e9e6b4f195c7d4acb1df97fd6110ea02ad5 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; }
+               else if(option == "citation") { citation(); abort = true; calledHelp = true;}
 
-QuitCommand::QuitCommand(){}
-
+}
 //**********************************************************************************************************************
-
 QuitCommand::~QuitCommand(){}
-
 //**********************************************************************************************************************
-
 int QuitCommand::execute(){
+       if (abort == true) { return 0; }
        return 1;
 }
-
 //**********************************************************************************************************************