]> git.donarmstrong.com Git - mothur.git/blobdiff - getgroupcommand.cpp
added cutoff change to hcluster
[mothur.git] / getgroupcommand.cpp
index 6b76bf2d74a1c3443111dade5d7ceaad7a1c75a2..1190f49d41036c3d3034d8555544725014ee49f0 100644 (file)
@@ -62,6 +62,7 @@ GetgroupCommand::GetgroupCommand(string option)  {
                
                //allow user to run help
                if(option == "help") { help(); abort = true; calledHelp = true; }
+               else if(option == "citation") { citation(); abort = true; calledHelp = true;}
                
                else {
                        vector<string> myArray = setParameters();
@@ -102,7 +103,7 @@ GetgroupCommand::GetgroupCommand(string option)  {
                                sharedfile = m->getSharedFile(); 
                                if (sharedfile != "") { m->mothurOut("Using " + sharedfile + " as input file for the shared parameter."); m->mothurOutEndLine(); }
                                else {  m->mothurOut("You have no current sharedfile and the shared parameter is required."); m->mothurOutEndLine(); abort = true; }
-                       }
+                       }else { m->setSharedFile(sharedfile); }
                        
                        
                        //if the user changes the output directory command factory will send this info to us in the output parameter