]> git.donarmstrong.com Git - mothur.git/blobdiff - getcurrentcommand.cpp
working on slayer bug
[mothur.git] / getcurrentcommand.cpp
index 2f67123a88c9795c362fac6cc4a428fc8e961d46..5f5235647d28168d4ca187189d5911266a24c71a 100644 (file)
@@ -135,6 +135,10 @@ int GetCurrentCommand::execute(){
                                        m->setAccnosFile("");
                                }else if (types[i] == "taxonomy") {
                                        m->setTaxonomyFile("");
+                               }else if (types[i] == "flow") {
+                                       m->setFlowFile("");
+                               }else if (types[i] == "processors") {
+                                       m->setProcessors("1");
                                }else if (types[i] == "all") {
                                        m->clearCurrentFiles();
                                }else {
@@ -143,8 +147,10 @@ int GetCurrentCommand::execute(){
                        }
                }
                
-               m->mothurOutEndLine(); m->mothurOut("Current files saved by mothur:"); m->mothurOutEndLine();
-               m->printCurrentFiles();
+               if (m->hasCurrentFiles()) {
+                       m->mothurOutEndLine(); m->mothurOut("Current files saved by mothur:"); m->mothurOutEndLine();
+                       m->printCurrentFiles();
+               }
                
                return 0;       
        }