From 0d5194bfd4dc8abb83877d30f1b19e9f2eb3636b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 22 Dec 2008 08:26:16 +0000 Subject: [PATCH] From Paul Martz, "Typing "osgconv" alone displays the --help family of options, as it should, but it also displays info about --formats and --plugins, which seems out of place because no other options are mentioned here. The code changes osgconv so that "osgconv --help" displays help info about --formats and --plugins, plus it also displays documentation for --format and --plugin, which were previously missing." --- applications/osgconv/osgconv.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/applications/osgconv/osgconv.cpp b/applications/osgconv/osgconv.cpp index 458cb0838..382b22d9f 100644 --- a/applications/osgconv/osgconv.cpp +++ b/applications/osgconv/osgconv.cpp @@ -493,6 +493,17 @@ static void usage( const char *prog, const char *msg ) " their own color values (--addMissingColours also accepted)."<< std::endl; osg::notify(osg::NOTICE)<<" --overallNormal - Replace normals with a single overall normal."<< std::endl; + osg::notify( osg::NOTICE ) << std::endl; + osg::notify( osg::NOTICE ) << + " --formats - Lists all supported formats and their supported options." << std::endl; + osg::notify( osg::NOTICE ) << + " --format - Displays information about the spefied , where \n" + " is the file extension, such as \"flt\"." << std::endl; + osg::notify( osg::NOTICE ) << + " --plugins - Lists all supported plugin files." << std::endl; + osg::notify( osg::NOTICE ) << + " --plugin >plugin> - Displays information about the spefied , where \n" + " is the plugin's full path and file name." << std::endl; } @@ -507,8 +518,8 @@ int main( int argc, char **argv ) arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+" [options] filename ..."); arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display command line parameters"); arguments.getApplicationUsage()->addCommandLineOption("--help-env","Display environmental variables available"); - arguments.getApplicationUsage()->addCommandLineOption("--formats","List supported file formats"); - arguments.getApplicationUsage()->addCommandLineOption("--plugins","List database olugins"); + //arguments.getApplicationUsage()->addCommandLineOption("--formats","List supported file formats"); + //arguments.getApplicationUsage()->addCommandLineOption("--plugins","List database olugins"); // if user request help write it out to cout.