Changed the '-c' commandline option to '-m' to avoid overlapp with -c

used for config files.
This commit is contained in:
Robert Osfield 2003-04-10 10:21:20 +00:00
parent 5c88b5ff8b
commit 0dd724e8b7

View File

@ -286,7 +286,7 @@ int main( int argc, char **argv )
arguments.getApplicationUsage()->setDescription(arguments.getApplicationName()+" is the example which demonstrates use of convex planer occluders."); arguments.getApplicationUsage()->setDescription(arguments.getApplicationName()+" is the example which demonstrates use of convex planer occluders.");
arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+" [options] filename ..."); arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationName()+" [options] filename ...");
arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information"); arguments.getApplicationUsage()->addCommandLineOption("-h or --help","Display this information");
arguments.getApplicationUsage()->addCommandLineOption("-c","Mannually create occluders"); arguments.getApplicationUsage()->addCommandLineOption("-m","Mannually create occluders");
// initialize the viewer. // initialize the viewer.
osgProducer::Viewer viewer(arguments); osgProducer::Viewer viewer(arguments);
@ -295,7 +295,7 @@ int main( int argc, char **argv )
viewer.setUpViewer(osgProducer::Viewer::STANDARD_SETTINGS); viewer.setUpViewer(osgProducer::Viewer::STANDARD_SETTINGS);
bool manuallyCreateOccluders = false; bool manuallyCreateOccluders = false;
while (arguments.read("-c")) { manuallyCreateOccluders = true; } while (arguments.read("-m")) { manuallyCreateOccluders = true; }
// get details on keyboard and mouse bindings used by the viewer. // get details on keyboard and mouse bindings used by the viewer.
viewer.getUsage(*arguments.getApplicationUsage()); viewer.getUsage(*arguments.getApplicationUsage());