[Genabel-commits] r1443 - pkg/ProbABEL/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Dec 2 18:39:13 CET 2013


Author: lckarssen
Date: 2013-12-02 18:39:13 +0100 (Mon, 02 Dec 2013)
New Revision: 1443

Modified:
   pkg/ProbABEL/src/command_line_settings.cpp
Log:
Minor changes in code layout of ProbABEL's command_line_settings.cpp; no functional changes.

Modified: pkg/ProbABEL/src/command_line_settings.cpp
===================================================================
--- pkg/ProbABEL/src/command_line_settings.cpp	2013-12-02 17:23:26 UTC (rev 1442)
+++ pkg/ProbABEL/src/command_line_settings.cpp	2013-12-02 17:39:13 UTC (rev 1443)
@@ -130,11 +130,12 @@
     return phefilename;
 }
 
+
 void cmdvars::set_variables(int argc, char * argv[])
 {
     int next_option;
     const char * const short_options = "p:i:d:m:n:c:o:s:t:g:a:erlhb:vu";
-    //b - interaction parameter
+    // b - interaction parameter
     // ADD --fv FLAG (FILEVECTOR), IN WHICH CASE USE ALTERNATIVE
     // CONSTRUCTOR FOR GENDATA
     const struct option long_options[] =
@@ -205,14 +206,14 @@
             ngpreds = atoi(optarg);
             break;
         case 'a':
-            if(std::string(optarg) == std::string("\\t")) 
-               {
-               sep = '\t';
-               }
+            if (std::string(optarg) == std::string("\\t"))
+            {
+                sep = '\t';
+            }
             else
-             {
-             sep = optarg;
-             }  
+            {
+                sep = optarg;
+            }
             break;
         case 'e':
             nohead = 1;
@@ -242,15 +243,17 @@
             break;
         default:
             abort();
-        } // end of switch
-    } while (next_option != -1);
-} // end of function
+        }  // end of switch
+    } while (next_option != -1);  // end of while
+}  // end of function
 
+
 bool cmdvars::isIsInteractionExcluded() const
 {
     return is_interaction_excluded;
 }
 
+
 void cmdvars::printinfo()
 {
     print_version();
@@ -274,7 +277,8 @@
         }
         cerr << endl;
 
-        cout << "One or more required command line options appear to be missing."
+        cout << "One or more required command line options "
+             << "appear to be missing."
              << endl
              << "Run " << program_name
              << " --help for more information on the available options\n";
@@ -354,7 +358,7 @@
 
     if (interaction_excluded != 0)
     {
-        interaction = interaction_excluded; //ups
+        interaction = interaction_excluded;  // ups
         is_interaction_excluded = true;
     }
     if (outfilename.compare("") == 0)
@@ -376,6 +380,7 @@
              << endl;
         exit(1);
     }
+
     if (robust)
     {
         cerr << "ERROR: robust standard errors not implemented "



More information about the Genabel-commits mailing list