5 * Created by Sarah Westcott on 1/2/09.
6 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10 #include "quitcommand.h"
12 //**********************************************************************************************************************
13 vector<string> QuitCommand::getValidParameters(){
15 vector<string> myArray;
19 m->errorOut(e, "QuitCommand", "getValidParameters");
23 //**********************************************************************************************************************
24 vector<string> QuitCommand::getRequiredParameters(){
26 vector<string> myArray;
30 m->errorOut(e, "QuitCommand", "getRequiredParameters");
34 //**********************************************************************************************************************
35 vector<string> QuitCommand::getRequiredFiles(){
37 vector<string> myArray;
41 m->errorOut(e, "QuitCommand", "getRequiredFiles");
45 //**********************************************************************************************************************
47 QuitCommand::QuitCommand(string option) {
48 abort = false; calledHelp = false;
50 //allow user to run help
51 if(option == "help") { help(); abort = true; calledHelp = true; }
54 //**********************************************************************************************************************
56 void QuitCommand::help(){
58 m->mothurOut("The quit command will terminate mothur and should be in the following format: \n");
59 m->mothurOut("quit() or quit\n\n");
62 m->errorOut(e, "QuitCommand", "help");
67 //**********************************************************************************************************************
69 QuitCommand::~QuitCommand(){}
71 //**********************************************************************************************************************
73 int QuitCommand::execute(){
74 if (abort == true) { return 0; }
78 //**********************************************************************************************************************