X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=helpcommand.h;h=aedb7b5a626570f39f16d420ca7bd82a0034f740;hp=4e68388d278c85b69a9a4fb7be9db6e19a4a1253;hb=1a20e24ee786195ab0e1cccd4f5aede7a88f3f4e;hpb=cd37904452dc95b183ff313ff05720c562902487 diff --git a/helpcommand.h b/helpcommand.h index 4e68388..aedb7b5 100644 --- a/helpcommand.h +++ b/helpcommand.h @@ -12,21 +12,30 @@ /* This class is designed to aid the user in running mothur. */ #include "command.hpp" -#include "validcommands.h" - +#include "commandfactory.hpp" class HelpCommand : public Command { public: HelpCommand(string); - ~HelpCommand(); - int execute(); - void help() {}; + 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: - ValidCommands* validCommands; private: + CommandFactory* validCommands; + vector outputNames; };