]> git.donarmstrong.com Git - mothur.git/blobdiff - parselistscommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / parselistscommand.cpp
index fdacc3a58fb799ba9b1fcff2497d9ba5ab562ccd..2d26ef3672a364cd694e01d48922d9d53e56b0db 100644 (file)
@@ -295,6 +295,13 @@ int ParseListCommand::execute(){
                        return 0;
                }
                
+               //set fasta file as new current fastafile
+               string current = "";
+               itTypes = outputTypes.find("list");
+               if (itTypes != outputTypes.end()) {
+                       if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setListFile(current); }
+               }
+                       
                m->mothurOutEndLine();
                m->mothurOut("Output File Names: "); m->mothurOutEndLine();
                for (int i = 0; i < outputNames.size(); i++) {  m->mothurOut(outputNames[i]); m->mothurOutEndLine();    }