]> git.donarmstrong.com Git - mothur.git/blobdiff - setdircommand.cpp
added getCommandInfoCommand for gui
[mothur.git] / setdircommand.cpp
index 16e93b5e4f5e8feeb864693a3d4a96ac75b9ed61..fc411ae61120ae90c4efb396de928b028432965f 100644 (file)
@@ -43,7 +43,7 @@ string SetDirectoryCommand::getHelpString(){
                helpString += "To set the tempdefault to the directory where mothur.exe is located you may enter: tempdefault=default.\n";
                helpString += "The set.dir command should be in the following format: set.dir(output=yourOutputDirectory, input=yourInputDirectory, tempdefault=yourTempDefault).\n";
                helpString += "Example set.outdir(output=/Users/lab/desktop/outputs, input=/Users/lab/desktop/inputs).\n";
-               helpString += "Note: No spaces between parameter labels (i.e. output), '=' and parameters (i.e.yourOutputDirectory).\n\n";
+               helpString += "Note: No spaces between parameter labels (i.e. output), '=' and parameters (i.e.yourOutputDirectory).\n";
                return helpString;
        }
        catch(exception& e) {
@@ -61,9 +61,7 @@ SetDirectoryCommand::SetDirectoryCommand(string option)  {
                if(option == "help") { help(); abort = true; calledHelp = true; }
                
                else {
-                       //valid paramters for this command
-                       string Array[] =  {"output","input","tempdefault","outputdir","inputdir"};
-                       vector<string> myArray (Array, Array+(sizeof(Array)/sizeof(string)));
+                       vector<string> myArray = setParameters();
                        
                        OptionParser parser(option);
                        map<string, string> parameters = parser.getParameters();