X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=optionparser.cpp;h=08032b32b83556f7ace0b83e235e51121e80f399;hb=4169642e8a8d45f71a4a7241ee02f1b1aae29520;hp=8f0e29d2deee52f5996da965f12e58dc66572d95;hpb=510b1cfc25cd79391d6973ca20c5ec25fb1bb3b2;p=mothur.git diff --git a/optionparser.cpp b/optionparser.cpp index 8f0e29d..08032b3 100644 --- a/optionparser.cpp +++ b/optionparser.cpp @@ -13,24 +13,24 @@ OptionParser::OptionParser(string option) { try { - + m = MothurOut::getInstance(); if (option != "") { string key, value; //reads in parameters and values while((option.find_first_of(',') != -1)) { //while there are parameters - splitAtComma(value, option); - splitAtEquals(key, value); + m->splitAtComma(value, option); + m->splitAtEquals(key, value); parameters[key] = value; } //in case there is no comma and to get last parameter after comma - splitAtEquals(key, option); + m->splitAtEquals(key, option); parameters[key] = option; } } catch(exception& e) { - errorOut(e, "OptionParser", "parse"); + m->errorOut(e, "OptionParser", "parse"); exit(1); } }