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; }
21 //**********************************************************************************************************************
23 void QuitCommand::help(){
25 m->mothurOut("The quit command will terminate mothur and should be in the following format: \n");
26 m->mothurOut("quit() or quit\n\n");
29 m->errorOut(e, "QuitCommand", "help");
34 //**********************************************************************************************************************
36 QuitCommand::~QuitCommand(){}
38 //**********************************************************************************************************************
40 int QuitCommand::execute(){
41 if (abort == true) { return 0; }
45 //**********************************************************************************************************************