X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=quitcommand.cpp;fp=quitcommand.cpp;h=99dc46be30ca9c282d82474e5021bdf4fc7f3c33;hb=510b1cfc25cd79391d6973ca20c5ec25fb1bb3b2;hp=87c2fa0672478e9899c60887ff0aa459f79551ee;hpb=37e0d78135e32b5aa58ca163f4d416716c78b67f;p=mothur.git diff --git a/quitcommand.cpp b/quitcommand.cpp index 87c2fa0..99dc46b 100644 --- a/quitcommand.cpp +++ b/quitcommand.cpp @@ -17,24 +17,20 @@ QuitCommand::QuitCommand(string option){ //allow user to run help if(option == "help") { help(); abort = true; } - else if (option != "") { cout << "There are no valid parameters for the quit command." << endl; abort = true; } + else if (option != "") { mothurOut("There are no valid parameters for the quit command."); mothurOutEndLine(); abort = true; } } //********************************************************************************************************************** void QuitCommand::help(){ try { - cout << "The quit command will terminate mothur and should be in the following format: " << "\n"; - cout << "quit() or quit" << "\n" << "\n"; + mothurOut("The quit command will terminate mothur and should be in the following format: \n"); + mothurOut("quit() or quit\n\n"); } catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the QuitCommand class Function help. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + errorOut(e, "QuitCommand", "help"); exit(1); } - catch(...) { - cout << "An unknown error has occurred in the QuitCommand class function help. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } } //**********************************************************************************************************************