//**********************************************************************************************************************
//This Function parses through the command line and pulls out the command then sends the options to the parseGlobalData
CommandOptionParser::CommandOptionParser(string input){
try {
//**********************************************************************************************************************
//This Function parses through the command line and pulls out the command then sends the options to the parseGlobalData
CommandOptionParser::CommandOptionParser(string input){
try {
if(openParen != -1 && closeParen != -1){
commandString = input.substr(0, openParen); //commandString contains everything before "("
if(openParen != -1 && closeParen != -1){
commandString = input.substr(0, openParen); //commandString contains everything before "("
- GlobalData* globaldata = GlobalData::getInstance();
- globaldata->parseGlobalData(commandString, optionString); //parser to separate and check options
+ //GlobalData* globaldata = GlobalData::getInstance();
+ //globaldata->parseGlobalData(commandString, optionString); //parser to separate and check options
- cout << "Standard Error: " << e.what() << " has occurred in the CommandOptionParser class Function CommandOptionParser. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
- }
- catch(...) {
- cout << "An unknown error has occurred in the CommandOptionParser class function CommandOptionParser. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ m->errorOut(e, "CommandOptionParser", "CommandOptionParser");
string CommandOptionParser::getCommandString() { return commandString; }
//**********************************************************************************************************************
string CommandOptionParser::getCommandString() { return commandString; }
//**********************************************************************************************************************