Moved the unrecognized options check to after loaded

This commit is contained in:
Robert Osfield
2003-11-25 11:05:22 +00:00
parent 91ccb013a4
commit 871d9c9237

View File

@@ -42,9 +42,6 @@ int main( int argc, char **argv )
return 1;
}
// any option left unread are converted into errors to write out later.
arguments.reportRemainingOptionsAsUnrecognized();
// report any errors if they have occured when parsing the program aguments.
if (arguments.errors())
{
@@ -71,6 +68,15 @@ int main( int argc, char **argv )
return 1;
}
// any option left unread are converted into errors to write out later.
arguments.reportRemainingOptionsAsUnrecognized();
// report any errors if they have occured when parsing the program aguments.
if (arguments.errors())
{
arguments.writeErrorMessages(std::cout);
}
osg::Timer_t end_tick = timer.tick();
std::cout << "Time to load = "<<timer.delta_s(start_tick,end_tick)<<std::endl;