X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=helpcommand.h;h=aedb7b5a626570f39f16d420ca7bd82a0034f740;hp=58356d13fa21b6f0c81377915618fff9c277473b;hb=d1c97b8c04bb75faca1e76ffad60b37a4d789d3d;hpb=51cf89e90eef8b300c2786eb1560dd89e6e83445 diff --git a/helpcommand.h b/helpcommand.h index 58356d1..aedb7b5 100644 --- a/helpcommand.h +++ b/helpcommand.h @@ -12,23 +12,30 @@ /* This class is designed to aid the user in running mothur. */ #include "command.hpp" -#include "globaldata.hpp" -#include "validcommands.h" -#include "validcalculator.h" - +#include "commandfactory.hpp" class HelpCommand : public Command { public: - HelpCommand(); - ~HelpCommand(); - int execute(); -private: - GlobalData* globaldata; - ValidCommands* validCommands; - ValidCalculators* validCalcs; + HelpCommand(string); + HelpCommand() {} + ~HelpCommand(){} + + vector 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: + CommandFactory* validCommands; + vector outputNames; };