]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracunweightedcommand.cpp
changes while setting up test files
[mothur.git] / unifracunweightedcommand.cpp
index a8c656cb5c5ffdc4a1e0fb3fd62e8eed0f1bb25f..eef37bd93b4dcc98fbf2bcadee93231be66b52ab 100644 (file)
@@ -48,7 +48,7 @@ string UnifracUnweightedCommand::getHelpString(){
                helpString += "Example unifrac.unweighted(groups=A-B-C, iters=500).\n";
                helpString += "The default value for groups is all the groups in your groupfile, and iters is 1000.\n";
                helpString += "The unifrac.unweighted command output two files: .unweighted and .uwsummary their descriptions are in the manual.\n";
-               helpString += "Note: No spaces between parameter labels (i.e. groups), '=' and parameters (i.e.yourGroups).\n\n";
+               helpString += "Note: No spaces between parameter labels (i.e. groups), '=' and parameters (i.e.yourGroups).\n";
                return helpString;
        }
        catch(exception& e) {
@@ -82,9 +82,7 @@ UnifracUnweightedCommand::UnifracUnweightedCommand(string option)  {
                if(option == "help") { help(); abort = true; calledHelp = true; }
                
                else {
-                       //valid paramters for this command
-                       string Array[] =  {"groups","iters","distance","random","root", "processors","outputdir","inputdir"};
-                       vector<string> myArray (Array, Array+(sizeof(Array)/sizeof(string)));
+                       vector<string> myArray = setParameters();
                        
                        OptionParser parser(option);
                        map<string,string> parameters = parser.getParameters();