Can't you do the old fashion way and us ARGV/ARGC 

____________________________________________________________________________
_____________________________
Gordon Tomlinson 

US Cell:     571-265-2612
UK Cell:     07806-571994
Skype:      gordon-tomlinson

www.photographybyGordon.com
www.vis-sim.com 
LinkedIn www.linkedin.com/in/gordontomlinson
"Self defence is not a function of learning tricks but is a function of how
quickly and  intensely one can arouse one's instinct for survival" 
-Master Tambo Tetsura 

-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Conan Doyle
Sent: Wednesday, February 20, 2013 1:00 PM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] dumping command line args/inputs

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


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to