]> git.donarmstrong.com Git - mothur.git/blob - nocommands.cpp
removed validcommands and put its checking in commandfactory.
[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
12 //**********************************************************************************************************************
13
14 NoCommand::NoCommand(string option){}
15
16 //**********************************************************************************************************************
17
18 NoCommand::~NoCommand(){}
19
20 //**********************************************************************************************************************
21
22 int NoCommand::execute(){
23         //Could choose to give more help here?fdsah
24         cout << "Invalid command." << "\n";
25         
26         CommandFactory* valid = new CommandFactory();
27         valid->printCommands(cout);
28         delete valid;
29         
30         return 0;
31 }
32
33 //**********************************************************************************************************************