diff --git a/applications/osgversion/osgversion.cpp b/applications/osgversion/osgversion.cpp index 4e725a3ff..aa1e9e19c 100644 --- a/applications/osgversion/osgversion.cpp +++ b/applications/osgversion/osgversion.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include #include @@ -649,6 +650,9 @@ int main( int argc, char **argv) arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information"); arguments.getApplicationUsage()->addCommandLineOption("--entries","Print out number of entries into the ChangeLog file for each contributor."); arguments.getApplicationUsage()->addCommandLineOption("--version-number","Print out version number only"); + arguments.getApplicationUsage()->addCommandLineOption("--soversion-number","Print out shared object version number only"); + arguments.getApplicationUsage()->addCommandLineOption("--openthreads-version-number","Print out version number for OpenThreads only"); + arguments.getApplicationUsage()->addCommandLineOption("--openthreads-soversion-number","Print out shared object version number for OpenThreads only"); arguments.getApplicationUsage()->addCommandLineOption("-r or --read ","Read the ChangeLog to generate an estimated contributors list."); if (arguments.read("--version-number")) @@ -657,6 +661,24 @@ int main( int argc, char **argv) return 0; } + if (arguments.read("--soversion-number")) + { + std::cout<