]> git.donarmstrong.com Git - mothur.git/blobdiff - getsabundcommand.cpp
added path search for lookup file in shhh.seqs
[mothur.git] / getsabundcommand.cpp
index 98bdcb2cba6cb726f9d793baca1c78f785a04c00..3f6413606193afed8b5e2b7f6e89d77c20ef4ce4 100644 (file)
@@ -37,7 +37,7 @@ string GetSAbundCommand::getHelpString(){
                helpString += "Example get.sabund().\n";
                helpString += "The default value for label is all labels in your inputfile.\n";
                helpString += "The get.sabund command outputs a .sabund file containing the labels you selected.\n";
-               helpString += "Note: No spaces between parameter labels (i.e. label), '=' and parameters (i.e.yourLabel).\n\n";
+               helpString += "Note: No spaces between parameter labels (i.e. label), '=' and parameters (i.e.yourLabel).\n";
                return helpString;
        }
        catch(exception& e) {
@@ -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; }