]> git.donarmstrong.com Git - mothur.git/blobdiff - setlogfilecommand.cpp
fixed metastats, added resize to cluster.classic, added code to kill children if...
[mothur.git] / setlogfilecommand.cpp
index 593664e3569d0ef8f9faeb31df9379ab2cafed41..b99b833a5651c80d4b54b1d957810303fe65b199 100644 (file)
@@ -9,6 +9,41 @@
 
 #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)  {
@@ -36,7 +71,7 @@ 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) {