[MOAB-dev] r4359 - MOAB/trunk/tools

sjackson at cae.wisc.edu sjackson at cae.wisc.edu
Mon Dec 13 13:22:11 CST 2010


Author: sjackson
Date: 2010-12-13 13:22:11 -0600 (Mon, 13 Dec 2010)
New Revision: 4359

Modified:
   MOAB/trunk/tools/ProgOptions.cpp
Log:
Minor fix to ProgOptions output

Modified: MOAB/trunk/tools/ProgOptions.cpp
===================================================================
--- MOAB/trunk/tools/ProgOptions.cpp	2010-12-13 19:08:57 UTC (rev 4358)
+++ MOAB/trunk/tools/ProgOptions.cpp	2010-12-13 19:22:11 UTC (rev 4359)
@@ -282,13 +282,13 @@
   for (size_t i = 0 ; i < arg_help_strings.size(); ++i)
   {
     if (!expect_optional_args || i != optional_args_position) 
-      std::cout << '<' << arg_help_strings[i].first->longname << "> "; 
+      out << '<' << arg_help_strings[i].first->longname << "> "; 
     else if (0 == max_optional_args && max_optional_args > 3)
-      std::cout << "[<" << arg_help_strings[i].first->longname << "> ...] ";
+      out << "[<" << arg_help_strings[i].first->longname << "> ...] ";
     else if (1 == max_optional_args)
-      std::cout << "[" << arg_help_strings[i].first->longname << "] ";
+      out << "[" << arg_help_strings[i].first->longname << "] ";
     else for (unsigned j = 0; j < max_optional_args; ++j)
-      std::cout << "[" << arg_help_strings[i].first->longname << (j+1) << "] ";
+      out << "[" << arg_help_strings[i].first->longname << (j+1) << "] ";
   }
     
   out << std::endl;































More information about the moab-dev mailing list