On Tue, Jul 24, 2012 at 4:18 AM, Larry Gritz <[email protected]> wrote: > On Jul 23, 2012, at 9:51 AM, Stefan Stavrev wrote: > >> "oiiotool A.png --pattern constant=0.1,0.1,0.1 1x1 3 --add -o B.png" > > I really like the idea of overloading --add to understand that if it gets an > argument that is obviously a number or comma-separated list of numbers
Right. Good idea Stefan! However can we support this with our current command line parser? --add doesn't normally take any parameters... We could do it fairly easily with an optional argument: oiiotool A.png --add:value=0.1,0.2,0.3 -o B.png Or perhaps just choose a different name rather than try to overload --add? ~Chris _______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
