Don't think so... it appears that write dumps the equivalent of "--help"... what I want to do is dump what the user actually passed in at run time...
S robertosfield wrote: > Hi Conan, > > On 18 February 2013 20:22, Conan Doyle <> wrote: > > > is there a quick/simple way to dump all the command line options added via > > osg::ArgumentParser::getApplicationUsage()->addCommandLineOption, > > addEnvironmentalVariable etc.? I simply want to dump all my input args to > > a file as I run my app. > > > > Have another look at the include/osg/ApplicaticationUsage header, you > should spot: > > void write(std::ostream& output,const UsageMap& um,unsigned > int widthOfOutput=80,bool showDefaults=false,const UsageMap& > ud=UsageMap()); > > void write(std::ostream& output,unsigned int > type=COMMAND_LINE_OPTION, unsigned int widthOfOutput=80,bool > showDefaults=false); > > > Might this be what you are looking for? > > Robert. > _______________________________________________ > osg-users mailing list > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ------------------ > Post generated by Mail2Forum ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=52792#52792 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org