]> git.donarmstrong.com Git - mothur.git/blob - quitcommand.cpp
changing command name classify.shared to classifyrf.shared
[mothur.git] / quitcommand.cpp
1 /*
2  *  quitcommand.cpp
3  *  Dotur
4  *
5  *  Created by Sarah Westcott on 1/2/09.
6  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
7  *
8  */
9
10 #include "quitcommand.h"
11
12 //**********************************************************************************************************************
13 QuitCommand::QuitCommand(string option) {
14                 abort = false; calledHelp = false;   
15                 
16                 //allow user to run help
17                 if(option == "help") { help(); abort = true; calledHelp = true; }
18                 else if(option == "citation") { citation(); abort = true; calledHelp = true;}
19
20 }
21 //**********************************************************************************************************************
22 QuitCommand::~QuitCommand(){}
23 //**********************************************************************************************************************
24 int QuitCommand::execute(){
25         if (abort == true) { return 0; }
26         return 1;
27 }
28 //**********************************************************************************************************************