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 != "") { cout << "There are no valid parameters for the quit command." << endl; abort = true; }
23 //**********************************************************************************************************************
25 void QuitCommand::help(){
27 cout << "The quit command will terminate mothur and should be in the following format: " << "\n";
28 cout << "quit() or quit" << "\n" << "\n";
31 cout << "Standard Error: " << e.what() << " has occurred in the QuitCommand class Function help. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
35 cout << "An unknown error has occurred in the QuitCommand class function help. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
40 //**********************************************************************************************************************
42 QuitCommand::~QuitCommand(){}
44 //**********************************************************************************************************************
46 int QuitCommand::execute(){
47 if (abort == true) { return 0; }
51 //**********************************************************************************************************************