]> git.donarmstrong.com Git - mothur.git/blobdiff - quitcommand.cpp
Revert to previous commit
[mothur.git] / quitcommand.cpp
diff --git a/quitcommand.cpp b/quitcommand.cpp
new file mode 100644 (file)
index 0000000..2c302e9
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+ *  quitcommand.cpp
+ *  Dotur
+ *
+ *  Created by Sarah Westcott on 1/2/09.
+ *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
+ *
+ */
+
+#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(){}
+//**********************************************************************************************************************
+int QuitCommand::execute(){
+       if (abort == true) { return 0; }
+       return 1;
+}
+//**********************************************************************************************************************