From Stephan Huber, "attached you’ll find a small enhancement for present3d. Now you can get advanced help via —help-all etc (similar to osgviewer)"

This commit is contained in:
Robert Osfield
2013-10-24 12:15:37 +00:00
parent 37fa2d698f
commit ded27b4971

View File

@@ -560,9 +560,10 @@ int main( int argc, char **argv )
viewer.getUsage(*arguments.getApplicationUsage());
// if user request help write it out to cout.
if (arguments.read("-h") || arguments.read("--help"))
unsigned int helpType = 0;
if ((helpType = arguments.readHelpType()))
{
arguments.getApplicationUsage()->write(osg::notify(osg::NOTICE));
arguments.getApplicationUsage()->write(std::cout, helpType);
return 1;
}