Show
Ignore:
Timestamp:
04/06/03 23:32:44 (11 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/osgreflect/osgreflect.cpp

    r1747 r1815  
    326326     
    327327    // set up the usage document, in case we need to print out how to use this program. 
    328     arguments.getApplicationUsage()->setCommandLineUsage(arguments.getProgramName()+" [options] filename ..."); 
     328    arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+" [options] filename ..."); 
    329329    arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information"); 
    330330     
     
    355355        return 1; 
    356356    } 
     357     
     358    if (arguments.argc()<=1) 
     359    { 
     360        arguments.getApplicationUsage()->write(std::cout,osg::ApplicationUsage::COMMAND_LINE_OPTION); 
     361        return 1; 
     362    } 
    357363 
    358364 
     
    363369    if (!loadedModel)  
    364370    { 
    365         std::cout << arguments.getProgramName() <<": No data loaded" << std::endl; 
     371        std::cout << arguments.getApplicationName() <<": No data loaded" << std::endl; 
    366372        return 1; 
    367373    }