Well... I _could_ but I am already using the arg parser/app usage stuff to 
process inputs so why not try to use it to record the users inputs this way too 
if possible?  I thought maybe there was already a way to do this but apparently 
not.  To clarify, all I wanted to do was take user input... run app... dump the 
user inputs to a file along with run date/time, and some other stuff... just a 
way to capture a snapshot of all inputs to be recorded with my outputs in one 
location... 



GordonTomlinson wrote:
> 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: 
> [mailto:] On Behalf Of Conan Doyle
> Sent: Wednesday, February 20, 2013 1:00 PM
> To: 
> Subject: Re:  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
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
> 
> _______________________________________________
> 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=52821#52821





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to