X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=pcacommand.cpp;fp=pcacommand.cpp;h=2e8f132eefa8a491f1b5e23a2d9650da22ee1c84;hb=c69e2e9749626cfbf1d6cb0125ae94f869e00b18;hp=8fb41213c7f836cb45cb89474ae8c874e96cd42e;hpb=c887ae6cd9f1c5b6e1b73a1384f154392be4efa3;p=mothur.git diff --git a/pcacommand.cpp b/pcacommand.cpp index 8fb4121..2e8f132 100644 --- a/pcacommand.cpp +++ b/pcacommand.cpp @@ -25,8 +25,7 @@ vector PCACommand::getValidParameters(){ //********************************************************************************************************************** PCACommand::PCACommand(){ try { - abort = true; - //initialize outputTypes + abort = true; calledHelp = true; vector tempOutNames; outputTypes["pca"] = tempOutNames; outputTypes["loadings"] = tempOutNames; @@ -63,12 +62,12 @@ vector PCACommand::getRequiredFiles(){ PCACommand::PCACommand(string option) { try { - abort = false; + abort = false; calledHelp = false; globaldata = GlobalData::getInstance(); //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 @@ -150,7 +149,7 @@ PCACommand::~PCACommand(){} int PCACommand::execute(){ try { - if (abort == true) { return 0; } + if (abort == true) { if (calledHelp) { return 0; } return 2; } cout.setf(ios::fixed, ios::floatfield); cout.setf(ios::showpoint);