From 761229f8f48c11a37bda02ddd5b9967f0ed044bb Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 4 Dec 2012 18:51:21 +0000 Subject: [PATCH] Changed the -w and -h options to --width and --height respectively. --- examples/osgframerenderer/osgframerenderer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/osgframerenderer/osgframerenderer.cpp b/examples/osgframerenderer/osgframerenderer.cpp index 84b3b6c0d..bfea73216 100644 --- a/examples/osgframerenderer/osgframerenderer.cpp +++ b/examples/osgframerenderer/osgframerenderer.cpp @@ -73,8 +73,8 @@ int main( int argc, char **argv ) arguments.getApplicationUsage()->addCommandLineOption("-p ","Use specificied camera path file to control camera position."); arguments.getApplicationUsage()->addCommandLineOption("--offscreen","Use an pbuffer to render the images offscreen."); arguments.getApplicationUsage()->addCommandLineOption("--screen","Use an window to render the images."); - arguments.getApplicationUsage()->addCommandLineOption("-w ","Window/output image width"); - arguments.getApplicationUsage()->addCommandLineOption("-h ","Window/output image height"); + arguments.getApplicationUsage()->addCommandLineOption("--width ","Window/output image width"); + arguments.getApplicationUsage()->addCommandLineOption("--height ","Window/output image height"); arguments.getApplicationUsage()->addCommandLineOption("--ms ","Number of multi-samples to use when rendering, an enable a single sample buffer."); arguments.getApplicationUsage()->addCommandLineOption("--samples ","Number of multi-samples to use when rendering."); arguments.getApplicationUsage()->addCommandLineOption("--sampleBuffers ","Number of sample buffers to use when rendering."); @@ -191,10 +191,10 @@ int main( int argc, char **argv ) if (arguments.read("--screen")) fc->setOffscreen(false); unsigned int width = 1024; - if (arguments.read("-w",width)) fc->setWidth(width); + if (arguments.read("--width",width)) fc->setWidth(width); unsigned int height = 512; - if (arguments.read("-h",height)) fc->setHeight(height); + if (arguments.read("--height",height)) fc->setHeight(height); unsigned int samples = 0; if (arguments.read("--samples",samples)) fc->setSamples(samples);