X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=quitcommand.cpp;h=2c302e9e6b4f195c7d4acb1df97fd6110ea02ad5;hb=6b32d112bb60e9f7eb6d4407a4eed4c49b67bced;hp=6b90f4b15c1cf64ae04bed98db42138f0edcf2d7;hpb=20a2d0350a737a434c89f303662d64a8eeea7b05;p=mothur.git diff --git a/quitcommand.cpp b/quitcommand.cpp index 6b90f4b..2c302e9 100644 --- a/quitcommand.cpp +++ b/quitcommand.cpp @@ -10,17 +10,19 @@ #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; } - //**********************************************************************************************************************