]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedutilities.cpp
fixing minor bugs
[mothur.git] / sharedutilities.cpp
index fc1b3350599ebb6db17da3d6f02f977a1f793bb1..de627c643c9ff277854a1d8b8ffcb595004d0a85 100644 (file)
@@ -66,7 +66,6 @@ void SharedUtil::getSharedVectorswithReplacement(vector<string> Groups, vector<S
                for (int j = 0; j < lookup.size(); j++) {
                        delete lookup[j];
                }
-               
                lookup.clear();
                
                //create and initialize vector of sharedvectors, one for each group
@@ -125,7 +124,7 @@ void SharedUtil::setGroups(vector<string>& userGroups, vector<string>& allGroups
                                
                                //if the user only entered invalid groups
                                if (userGroups.size() == 0) { 
-                                       cout << "When using the groups parameter you must have at least 1 valid groups. I will run the command using all the groups in your groupfile." << endl; 
+                                       cout << "You provided no valid groups. I will run the command using all the groups in your groupfile." << endl; 
                                        for (int i = 0; i < allGroups.size(); i++) {
                                                userGroups.push_back(allGroups[i]);
                                        }
@@ -211,6 +210,7 @@ void SharedUtil::setGroups(vector<string>& userGroups, vector<string>& allGroups
        try {
                numGroups = 0;
                label = "";
+
                //if the user has not entered specific groups to analyze then do them all
                if (userGroups.size() != 0) {
                        if (userGroups[0] != "all") {