5 * Created by Sarah Westcott on 1/2/09.
6 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10 #include "quitcommand.h"
12 //**********************************************************************************************************************
14 QuitCommand::QuitCommand(string option){
17 //allow user to run help
18 if(option == "help") { help(); abort = true; }
20 else if (option != "") { mothurOut("There are no valid parameters for the quit command."); mothurOutEndLine(); abort = true; }
23 //**********************************************************************************************************************
25 void QuitCommand::help(){
27 mothurOut("The quit command will terminate mothur and should be in the following format: \n");
28 mothurOut("quit() or quit\n\n");
31 errorOut(e, "QuitCommand", "help");
36 //**********************************************************************************************************************
38 QuitCommand::~QuitCommand(){}
40 //**********************************************************************************************************************
42 int QuitCommand::execute(){
43 if (abort == true) { return 0; }
47 //**********************************************************************************************************************