[MOAB-dev] r5147 - MOAB/trunk/src

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Thu Sep 1 15:39:30 CDT 2011


Author: kraftche
Date: 2011-09-01 15:39:30 -0500 (Thu, 01 Sep 2011)
New Revision: 5147

Modified:
   MOAB/trunk/src/ProgOptions.cpp
Log:
fix bug in ProgOptions where applications were told that all possible flag-type (no arg) options were specified

Modified: MOAB/trunk/src/ProgOptions.cpp
===================================================================
--- MOAB/trunk/src/ProgOptions.cpp	2011-09-01 19:41:26 UTC (rev 5146)
+++ MOAB/trunk/src/ProgOptions.cpp	2011-09-01 20:39:30 UTC (rev 5147)
@@ -528,12 +528,10 @@
     error( "Option '" + namestring + "' looked up with incompatible type" );
   }
   
-  if (!t)
-    return true;
-
   // This call to evaluate is inefficient, because opt was already evaluated when it was parsed.
   if( opt->args.size() ){
-    evaluate( *opt, t, "" );
+    if (t)
+      evaluate( *opt, t, "" );
     return true;
   }
   else return false;


































More information about the moab-dev mailing list