X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=quitcommand.cpp;fp=quitcommand.cpp;h=2c302e9e6b4f195c7d4acb1df97fd6110ea02ad5;hb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc;hp=0000000000000000000000000000000000000000;hpb=1b73ff67c83892a025e597dabd9df6fe7b58206a;p=mothur.git diff --git a/quitcommand.cpp b/quitcommand.cpp new file mode 100644 index 0000000..2c302e9 --- /dev/null +++ b/quitcommand.cpp @@ -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; +} +//**********************************************************************************************************************