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/osgunittests/osgunittests.cpp

    r1699 r1815  
    88 
    99    // set up the usage document, in case we need to print out how to use this program. 
    10     arguments.getApplicationUsage()->setCommandLineUsage(arguments.getProgramName()+" [options]"); 
     10    arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+" [options]"); 
    1111    arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information"); 
    1212    arguments.getApplicationUsage()->addCommandLineOption("qt","Display qualified tests."); 
     
    3333        return 1; 
    3434    } 
     35     
     36    if (arguments.argc()<=1) 
     37    { 
     38        arguments.getApplicationUsage()->write(std::cout,osg::ApplicationUsage::COMMAND_LINE_OPTION); 
     39        return 1; 
     40    } 
    3541 
    3642