From 5f4e8d54af209b7293ba4929e23412ed88e7403e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 10 Mar 2008 20:30:56 +0000 Subject: [PATCH] Added commandline help options --- applications/osgversion/osgversion.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/applications/osgversion/osgversion.cpp b/applications/osgversion/osgversion.cpp index 255c52ddc..150668edf 100644 --- a/applications/osgversion/osgversion.cpp +++ b/applications/osgversion/osgversion.cpp @@ -698,7 +698,10 @@ 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("--major-number","Print out major version number only"); + arguments.getApplicationUsage()->addCommandLineOption("--minor-number","Print out minor version number only"); + arguments.getApplicationUsage()->addCommandLineOption("--patch-number","Print out patch version number only"); + arguments.getApplicationUsage()->addCommandLineOption("--so-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."); @@ -727,7 +730,7 @@ int main( int argc, char **argv) return 0; } - if (arguments.read("--soversion-number")) + if (arguments.read("--soversion-number") || arguments.read("--so-number") ) { std::cout<