Changeset 1815 for OpenSceneGraph/trunk/examples/osgreflect/osgreflect.cpp
- Timestamp:
- 04/06/03 23:32:44 (10 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgreflect/osgreflect.cpp
r1747 r1815 326 326 327 327 // set up the usage document, in case we need to print out how to use this program. 328 arguments.getApplicationUsage()->setCommandLineUsage(arguments.get ProgramName()+" [options] filename ...");328 arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+" [options] filename ..."); 329 329 arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information"); 330 330 … … 355 355 return 1; 356 356 } 357 358 if (arguments.argc()<=1) 359 { 360 arguments.getApplicationUsage()->write(std::cout,osg::ApplicationUsage::COMMAND_LINE_OPTION); 361 return 1; 362 } 357 363 358 364 … … 363 369 if (!loadedModel) 364 370 { 365 std::cout << arguments.get ProgramName() <<": No data loaded" << std::endl;371 std::cout << arguments.getApplicationName() <<": No data loaded" << std::endl; 366 372 return 1; 367 373 }
