]> git.donarmstrong.com Git - mothur.git/blobdiff - helpcommand.h
changes while testing
[mothur.git] / helpcommand.h
index c303678131df5a937174ed1a2b3e75858e174877..aedb7b5a626570f39f16d420ca7bd82a0034f740 100644 (file)
 /* This class is designed to aid the user in running mothur. */
 
 #include "command.hpp"
-#include "globaldata.hpp"
-#include "validcommands.h"
-
+#include "commandfactory.hpp"
 
 class HelpCommand : public Command {
        
 public:
        HelpCommand(string);
-       ~HelpCommand();
-       int execute();
-       void help() {};
+       HelpCommand() {}
+       ~HelpCommand(){}
+       
+       vector<string> setParameters()  { return outputNames;   } //dummy, doesn't really do anything   
+       string getCommandName()                 { return "help";                }
+       string getCommandCategory()             { return "Hidden";              }
+       string getHelpString() { return "For more information about a specific command type 'commandName(help)' i.e. 'cluster(help)'"; }        
+     string getOutputPattern(string) { return "";                }
+       string getCitation() { return "no citation"; }
+       string getDescription()         { return "help"; }
+
+       int execute(); 
+       void help() { m->mothurOut(getHelpString()); }  
        
-private:
-       GlobalData* globaldata;
-       ValidCommands* validCommands;
        
 private:
+       CommandFactory* validCommands;
+       vector<string> outputNames;     
                
 };