]> git.donarmstrong.com Git - mothur.git/blob - helpcommand.cpp
added pipeline commands which involved change to command factory and command class...
[mothur.git] / helpcommand.cpp
1 /*
2  *  helpcommand.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 "helpcommand.h"
11
12 //**********************************************************************************************************************
13 vector<string> HelpCommand::getValidParameters(){       
14         try {
15                 
16                 vector<string> myArray; 
17                 return myArray;
18         }
19         catch(exception& e) {
20                 m->errorOut(e, "HelpCommand", "getValidParameters");
21                 exit(1);
22         }
23 }
24 //**********************************************************************************************************************
25 vector<string> HelpCommand::getRequiredParameters(){    
26         try {
27                 vector<string> myArray;
28                 return myArray;
29         }
30         catch(exception& e) {
31                 m->errorOut(e, "HelpCommand", "getRequiredParameters");
32                 exit(1);
33         }
34 }
35 //**********************************************************************************************************************
36 vector<string> HelpCommand::getRequiredFiles(){ 
37         try {
38                 vector<string> myArray;
39                 return myArray;
40         }
41         catch(exception& e) {
42                 m->errorOut(e, "HelpCommand", "getRequiredFiles");
43                 exit(1);
44         }
45 }
46 //**********************************************************************************************************************
47
48 HelpCommand::HelpCommand(string option)  {
49         
50         validCommands = CommandFactory::getInstance();
51         
52 }
53
54 //**********************************************************************************************************************
55
56 HelpCommand::~HelpCommand(){}
57
58 //**********************************************************************************************************************
59
60 int HelpCommand::execute(){
61         validCommands->printCommands(cout);
62         m->mothurOut("For more information about a specific command type 'commandName(help)' i.e. 'read.dist(help)'"); m->mothurOutEndLine();
63         
64         m->mothurOutEndLine(); m->mothurOut("For further assistance please refer to the Mothur manual on our wiki at http://www.mothur.org/wiki, or contact Pat Schloss at mothur.bugs@gmail.com.\n");
65         return 0;
66 }
67
68 //**********************************************************************************************************************/