]> git.donarmstrong.com Git - mothur.git/blob - nocommands.cpp
broke up globaldata and moved error checking and help into commands
[mothur.git] / nocommands.cpp
1 /*
2  *  nocommand.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 "nocommands.h"
11 #include "validcommands.h"
12
13 //**********************************************************************************************************************
14
15 NoCommand::NoCommand(string option){}
16
17 //**********************************************************************************************************************
18
19 NoCommand::~NoCommand(){}
20
21 //**********************************************************************************************************************
22
23 int NoCommand::execute(){
24         //Could choose to give more help here?fdsah
25         cout << "Invalid command." << "\n";
26         
27         ValidCommands* valid = new ValidCommands();
28         valid->printCommands(cout);
29         delete valid;
30         
31         return 0;
32 }
33
34 //**********************************************************************************************************************