From c4b1c27a31fdcf9ffe1dd5f73f0c3c412e6291d5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 8 Jun 2007 15:29:04 +0000 Subject: [PATCH] Added fallback for when no command line args are provied. --- examples/osgstereoimage/osgstereoimage.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/osgstereoimage/osgstereoimage.cpp b/examples/osgstereoimage/osgstereoimage.cpp index f2eea49ce..21322fc73 100644 --- a/examples/osgstereoimage/osgstereoimage.cpp +++ b/examples/osgstereoimage/osgstereoimage.cpp @@ -450,12 +450,6 @@ int main( int argc, char **argv ) return 1; } - if (arguments.argc()<=1) - { - arguments.getApplicationUsage()->write(std::cout,osg::ApplicationUsage::COMMAND_LINE_OPTION); - return 1; - } - // extract the filenames from the arguments list. FileList fileList; for(int pos=1;poswrite(std::cout,osg::ApplicationUsage::COMMAND_LINE_OPTION); return 1; }