Hi Andrew and Alan,
>> Would it be straightforward to implement a -stream command-line option that
>> means all subsequent options refer to the specified stream number? That
>> would provide an elegant solution to the example 14 issue with, e.g.,
>>
>> c/x14c -dev psc -o x14ac.psc -stream 1 -dev psc -o x14bc.psc
>>     
>
> Or how about anything before the option could be applied to all streams,
> options after a -stream command only apply to that stream, unless
> another -stream option is encountered. Each stream can then call
> plparseopts and only extract the commands meant for it. Default would be
> the current behaviour. A stream can then decide whether or not it wants
> to use command line options. The only down side of this is that the
> (currently internal) stream numbers are exposed to the user.
>   
I think you provide a solution for only one specific example. Before we 
do that we should think about if this is a common case which is often 
used (which I don't think). Also it is very easy to do that inside the 
program, e.g. before we parse the command line options, make a copy of 
them and then parse the copy for the new stream. Personally I think 95% 
of the time PLplot is used only a single stream is used. I you use a 
second stream you most likely use it to use a different driver (e.g. to 
save a png), where different options apply.

I actually want to say, that when I had a look at the command line 
options parsing code I obtained the opinion that it is a lot of work to 
make changes to this code (bugfree), so it is not worth it, since there 
are a lot of other things to do and since it works at the moment and it 
is transparent how it works (although maybe not well documented ;) we 
should just keep it as it is. I also had big troubles, since due to a 
bug driver specific options propagated to different streams (with 
different drivers) which lead to crashes which were not easy to 
understand. Maybe that is the reason why I'm against changes ;)

Regards,
Werner


> Andrew
>
> ------------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It is the best place to buy or sell services for
> just about anything Open Source.
> http://p.sf.net/sfu/Xq1LFB
> _______________________________________________
> Plplot-devel mailing list
> Plplot-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/plplot-devel
>   


-- 
Dr. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria
DVR-Nr: 0005886

email: sme...@iap.tuwien.ac.at
web:   http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
       +43-(0)1-58801-13469 (laboratory)
fax:   +43-(0)1-58801-13499


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to