]> git.donarmstrong.com Git - mothur.git/blobdiff - getsabundcommand.cpp
added path search for lookup file in shhh.seqs
[mothur.git] / getsabundcommand.cpp
index ebfa839161fc3d59cd27f9a2f8e2e24743b85e7e..3f6413606193afed8b5e2b7f6e89d77c20ef4ce4 100644 (file)
@@ -67,6 +67,7 @@ GetSAbundCommand::GetSAbundCommand(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();
@@ -186,7 +187,6 @@ int GetSAbundCommand::execute(){
                                        m->mothurOut(sabund->getLabel());  m->mothurOutEndLine();
                                        
                                        sabund->print(out);
-                                       delete sabund;
                                        
                                if (m->control_pressed) { outputTypes.clear();  out.close(); remove(filename.c_str());  delete sabund; delete input;  return 0; }
 
@@ -202,7 +202,6 @@ int GetSAbundCommand::execute(){
                                        
                                        m->mothurOut(sabund->getLabel());  m->mothurOutEndLine();
                                        sabund->print(out);
-                                       delete sabund;
                                        
                                        if (m->control_pressed) {  outputTypes.clear(); out.close(); remove(filename.c_str());  delete sabund; delete input;  return 0; }