Show
Ignore:
Timestamp:
04/06/03 23:32:44 (12 years ago)
Author:
robert
Message:

Added the usage report to the examples for when no arguments are passed
to the examples.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osglightpoint/osglightpoint.cpp

    r1791 r1815  
    1111#include <osgDB/Registry> 
    1212#include <osgDB/ReadFile> 
    13  
    14 #include <osgGA/TrackballManipulator> 
    15 #include <osgGA/FlightManipulator> 
    16 #include <osgGA/DriveManipulator> 
    1713 
    1814#include <osgUtil/Optimizer> 
     
    120116 
    121117    // set up the usage document, in case we need to print out how to use this program. 
    122     arguments.getApplicationUsage()->setCommandLineUsage(arguments.getProgramName()+" [options] filename ..."); 
     118    arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+" [options] filename ..."); 
    123119    arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information"); 
    124120 
     
    148144        return 1; 
    149145    } 
    150  
    151  
     146     
    152147    osg::Group* rootnode = new osg::Group; 
    153148