Changeset 639

Show
Ignore:
Timestamp:
08/16/07 12:27:26
Author:
robert
Message:

Added --version-number support

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/applications/osgdem/osgdem.cpp

    r638 r639  
    237237    arguments.getApplicationUsage()->addCommandLineOption("--zz","");      
    238238    arguments.getApplicationUsage()->addCommandLineOption("--zt","");      
     239    arguments.getApplicationUsage()->addCommandLineOption("--version","Print out version");      
     240    arguments.getApplicationUsage()->addCommandLineOption("--version-number","Print out version number only.");      
    239241    arguments.getApplicationUsage()->addCommandLineOption("--tile-image-size","Set the tile maximum image size"); 
    240242    arguments.getApplicationUsage()->addCommandLineOption("--tile-terrain-size","Set the tile maximum terrain size"); 
     
    247249    if (arguments.read("--version")) 
    248250    { 
    249         std::cout<<"osgdem version = "<<vpbGetVersion()<<std::endl; 
     251        std::cout<<"VirtualPlanetBuilder/osgdem version "<<vpbGetVersion()<<std::endl; 
    250252        return 0; 
    251253    } 
    252254 
     255    if (arguments.read("--version-number")) 
     256    { 
     257        std::cout<<vpbGetVersion()<<std::endl; 
     258        return 0; 
     259    } 
    253260 
    254261    float x,y,w,h;