#include "setlogfilecommand.h"
+//**********************************************************************************************************************
+vector<string> SetLogFileCommand::getValidParameters(){
+ try {
+ string Array[] = {"name","append","outputdir","inputdir"};
+ vector<string> myArray (Array, Array+(sizeof(Array)/sizeof(string)));
+ return myArray;
+ }
+ catch(exception& e) {
+ m->errorOut(e, "SetLogFileCommand", "getValidParameters");
+ exit(1);
+ }
+}
+//**********************************************************************************************************************
+vector<string> SetLogFileCommand::getRequiredParameters(){
+ try {
+ string Array[] = {"name"};
+ vector<string> myArray (Array, Array+(sizeof(Array)/sizeof(string)));
+ return myArray;
+ }
+ catch(exception& e) {
+ m->errorOut(e, "SetLogFileCommand", "getRequiredParameters");
+ exit(1);
+ }
+}
+//**********************************************************************************************************************
+vector<string> SetLogFileCommand::getRequiredFiles(){
+ try {
+ vector<string> myArray;
+ return myArray;
+ }
+ catch(exception& e) {
+ m->errorOut(e, "SetLogFileCommand", "getRequiredFiles");
+ exit(1);
+ }
+}
//**********************************************************************************************************************
SetLogFileCommand::SetLogFileCommand(string option) {
if (name == "not found") { m->mothurOut("name is a required parameter for the set.logfile command."); abort = true; }
string temp = validParameter.validFile(parameters, "append", false); if (temp == "not found") { temp = "F"; }
- append = isTrue(temp);
+ append = m->isTrue(temp);
}
}
catch(exception& e) {