#endif
//executes valid command
mout->runParse = true;
- mout->Groups.clear();
- mout->namesOfGroups.clear();
+ mout->clearGroups();
+ mout->clearAllGroups();
mout->Treenames.clear();
mout->names.clear();
mout->saveNextLabel = "";
mout->printedHeaders = false;
+ mout->currentBinLabels.clear();
+ mout->binLabelsInFile.clear();
Command* command = cFactory->getCommand(commandName, options);
quitCommandCalled = command->execute();
if(nextCommand != NULL) { add_history(nextCommand); }
else{ //^D causes null string and we want it to quit mothur
- strcpy(nextCommand, "quit");
+ nextCommand = strdup("quit");
mout->mothurOut(nextCommand);
}
#endif
//executes valid command
mout->runParse = true;
- mout->Groups.clear();
- mout->namesOfGroups.clear();
+ mout->clearGroups();
+ mout->clearAllGroups();
mout->Treenames.clear();
mout->names.clear();
mout->saveNextLabel = "";
mout->printedHeaders = false;
+ mout->currentBinLabels.clear();
+ mout->binLabelsInFile.clear();
+
Command* command = cFactory->getCommand(commandName, options);
quitCommandCalled = command->execute();
#endif
//executes valid command
mout->runParse = true;
- mout->Groups.clear();
- mout->namesOfGroups.clear();
+ mout->clearGroups();
+ mout->clearAllGroups();
mout->Treenames.clear();
mout->names.clear();
mout->saveNextLabel = "";
mout->printedHeaders = false;
+ mout->currentBinLabels.clear();
+ mout->binLabelsInFile.clear();
+
Command* command = cFactory->getCommand(commandName, options);
quitCommandCalled = command->execute();