Hello,

On trečiadienis 26 Rugpjūtis 2009 23:56:30 Joey Hess wrote:
> Why not instead allow build systems to hook into regular getopt
> processing, so they can define their own first-class options?

Sure, it would be nice. But how? _init() is executed before any of the build 
systems are loaded. And many of them are loaded in order to evaluate their 
autobuildable status. The only solution I can think of is to Getopt on the 
@ARGV of the remaining options after initial init() as soon as build system to 
be used is known, i.e. right after load_buildsystem() in buildsystems_do(). 
This will require (conditional) use of Getopt::Long::Configure("passthrough") 
in Dh_Getopt though. Is this acceptable?

-- 
Modestas Vainius <modes...@vainius.eu>

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to