X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=commandfactory.cpp;h=bd519eebfd6eaa24134dad9ac08f2193004e6386;hb=8130ff9b30d872c578963f8d6f24af821b1ec33c;hp=a40c432f54d18c19e549e9370253fb52dd9ddfa3;hpb=fc9c3ccee1fba93d9df72c26baa22628268fe79f;p=mothur.git diff --git a/commandfactory.cpp b/commandfactory.cpp index a40c432..bd519ee 100644 --- a/commandfactory.cpp +++ b/commandfactory.cpp @@ -79,6 +79,7 @@ #include "catchallcommand.h" #include "splitabundcommand.h" #include "clustersplitcommand.h" +#include "classifyotucommand.h" /*******************************************************/ @@ -165,6 +166,7 @@ CommandFactory::CommandFactory(){ commands["catchall"] = "catchall"; commands["split.abund"] = "split.abund"; commands["cluster.split"] = "cluster.split"; + commands["classify.otu"] = "classify.otu"; commands["classify.seqs"] = "MPIEnabled"; commands["dist.seqs"] = "MPIEnabled"; commands["filter.seqs"] = "MPIEnabled"; @@ -288,6 +290,7 @@ Command* CommandFactory::getCommand(string commandName, string optionString){ else if(commandName == "catchall") { command = new CatchAllCommand(optionString); } else if(commandName == "split.abund") { command = new SplitAbundCommand(optionString); } else if(commandName == "cluster.split") { command = new ClusterSplitCommand(optionString); } + else if(commandName == "classify.otu") { command = new ClassifyOtuCommand(optionString); } else { command = new NoCommand(optionString); } return command; @@ -339,9 +342,9 @@ bool CommandFactory::isValidCommand(string command) { /***********************************************************************/ void CommandFactory::printCommands(ostream& out) { try { - out << "Valid commands are "; + out << "Valid commands are: "; for (it = commands.begin(); it != commands.end(); it++) { - out << it->first << ", "; + out << it->first << ","; } out << endl; }