From ded27b497153d2d8dafccebd3bc2700f5c6dc7f3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 24 Oct 2013 12:15:37 +0000 Subject: [PATCH] =?UTF-8?q?From=20Stephan=20Huber,=20"attached=20you?= =?UTF-8?q?=E2=80=99ll=20find=20a=20small=20enhancement=20for=20present3d.?= =?UTF-8?q?=20Now=20you=20can=20get=20advanced=20help=20via=20=E2=80=94hel?= =?UTF-8?q?p-all=20etc=20(similar=20to=20osgviewer)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/present3D/deprecated/present3D.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/applications/present3D/deprecated/present3D.cpp b/applications/present3D/deprecated/present3D.cpp index 4861edeca..aefecb6b4 100644 --- a/applications/present3D/deprecated/present3D.cpp +++ b/applications/present3D/deprecated/present3D.cpp @@ -560,9 +560,10 @@ int main( int argc, char **argv ) viewer.getUsage(*arguments.getApplicationUsage()); // if user request help write it out to cout. - if (arguments.read("-h") || arguments.read("--help")) + unsigned int helpType = 0; + if ((helpType = arguments.readHelpType())) { - arguments.getApplicationUsage()->write(osg::notify(osg::NOTICE)); + arguments.getApplicationUsage()->write(std::cout, helpType); return 1; }