X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=splitabundcommand.cpp;fp=splitabundcommand.cpp;h=d0f925eb0ae26d98cd5f8098eca3ade34fc9e5d4;hb=c69e2e9749626cfbf1d6cb0125ae94f869e00b18;hp=a8ca812e0e0cb6854fd3c806e8e26249eb9400a2;hpb=c887ae6cd9f1c5b6e1b73a1384f154392be4efa3;p=mothur.git diff --git a/splitabundcommand.cpp b/splitabundcommand.cpp index a8ca812..d0f925e 100644 --- a/splitabundcommand.cpp +++ b/splitabundcommand.cpp @@ -24,8 +24,7 @@ vector SplitAbundCommand::getValidParameters(){ //********************************************************************************************************************** SplitAbundCommand::SplitAbundCommand(){ try { - abort = true; - //initialize outputTypes + abort = true; calledHelp = true; vector tempOutNames; outputTypes["list"] = tempOutNames; outputTypes["name"] = tempOutNames; @@ -64,11 +63,11 @@ vector SplitAbundCommand::getRequiredFiles(){ //********************************************************************************************************************** SplitAbundCommand::SplitAbundCommand(string option) { try { - abort = false; + abort = false; calledHelp = false; allLines = 1; //allow user to run help - if(option == "help") { help(); abort = true; } + if(option == "help") { help(); abort = true; calledHelp = true; } else { //valid paramters for this command @@ -233,7 +232,7 @@ SplitAbundCommand::~SplitAbundCommand(){ int SplitAbundCommand::execute(){ try { - if (abort == true) { return 0; } + if (abort == true) { if (calledHelp) { return 0; } return 2; } if (listfile != "") { //you are using a listfile to determine abundance if (outputDir == "") { outputDir = m->hasPath(listfile); }