gump-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: Gump and APR
Date Sun, 05 Dec 2004 15:43:27 GMT
Stefan Bodewig wrote:

>><configure>
>>   <environment name="CFLAGS" value="-g" />
>>   <arg name="c" value="<blah>" /> <!-- becomes "-c <blah>" -->
>>   <arg name="prefix" value="<blah>" /> <!-- becomes "--prefix=<blah>"
--> 
>>   <rawarg name="-shared" /> <!-- becomes "-shared" -->
>></configure>
> 
> 
> I don't think I'd like the magic that's happening to distinguish the
> first two cases.  Yes, I am used to -x and --xlong myself, but it
> still looks non-obvious.

The trouble is the single character options tend to be separated from 
their argument by whitespace, while multi character arguments tend to be 
separated by an equals.

Perhaps you could have:

<arg name="-c" value="blah"> <!-- -c blah -->
<arg name="--prefix" value="/opt"> <!-- prefix=/opt -->
<arg name="-shared"> <!-- -shared -->

If the parameter starts with a -, then it's white separated. If it 
starts with a --, it's equals separated. And if the attribute 
"separator" is declared, you could set the separator to any string you 
liked.

Regards,
Graham
--

Mime
View raw message