Paul Martz wrote:
> Hi Chris -- Typically, argument parsing removes arguments from the
> command line, leaving only files, then readNodeFiles is called. That's
> all correct and fine.
> However, what happens if the user specifies a bogus argument? The
> argument parser doesn't remove it from the command line (because it
> doesn't recognize it), and it gets passed to readNodeFiles, right? Is
> your change able to handle a stray bogus command line argument? I assume
> the "ignore files starting with '-'" code was there just to handle a
> case like I'm describing.

  Both the old osgconv source (line 670 in svn trunk) and my code explicitly 
filter out
option-style (starting with a dash) strings before adding entries to the string 
container
passed to readNodefiles().

  So, I think all is well and good.

> Paul Martz
> Skew Matrix Software LLC
> _http://www.skew-matrix.com_ <http://www.skew-matrix.com/>
> +1 303 859 9466


-- 
Chris 'Xenon' Hanson, omo sanza lettere                  Xenon AlphaPixel.com
PixelSense Landsat processing now available! http://www.alphapixel.com/demos/
"There is no Truth. There is only Perception. To Perceive is to Exist." - Xen
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to