X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=command.hpp;fp=command.hpp;h=6a1a4deea6c1df252a627fa827bb33a8f49b439c;hb=e150b0b0664caec517485ee6d69dcdade6dcae77;hp=fd80ad1e9fc786fece31e00525476c453c6c2344;hpb=4160a27002f4a3ca436fcd62eca0366b09f8e901;p=mothur.git diff --git a/command.hpp b/command.hpp index fd80ad1..6a1a4de 100644 --- a/command.hpp +++ b/command.hpp @@ -29,6 +29,7 @@ class Command { virtual string getCommandName() = 0; virtual string getCommandCategory() = 0; virtual string getHelpString() = 0; + virtual string getCitation() = 0; virtual map > getOutputFiles() { return outputTypes; } virtual vector setParameters() = 0; //to fill parameters @@ -36,6 +37,7 @@ class Command { virtual int execute() = 0; virtual void help() = 0; + void citation() { m->mothurOut(getCitation()); } virtual ~Command() { } protected: