]> git.donarmstrong.com Git - mothur.git/blobdiff - engine.cpp
minor bugs fixes and added line and label options to read.otu's parselist and shared...
[mothur.git] / engine.cpp
index 1ca98b021214e624215ec897a549e0f14ed47ca3..e251f0031d5ffa2bc9685702ef76ae0489af8449 100644 (file)
@@ -75,6 +75,8 @@ bool InteractEngine::getInput(){
 
                        cout << endl << "mothur > ";
                        getline(cin, input);
+                       if (cin.eof()) { input = "quit()"; }
+                       
                        errorFree = errorCheckor->checkInput(input);
                        if (errorFree == true) {
                                CommandOptionParser parser(input);
@@ -148,7 +150,9 @@ bool BatchEngine::getInput(){
                while(quitCommandCalled == 0){
                
                        getline(inputBatchFile, input);
-                       cout << endl << "dotur > " << input << endl;
+                       if (inputBatchFile.eof()) { input = "quit()"; }
+                       
+                       cout << endl << "mothur > " << input << endl;
                        errorFree = errorCheckor->checkInput(input);
                        if (errorFree == true) {
                                CommandOptionParser parser(input);