[Scons-users] AddOption() strange behaviour

Dirk Bächle tshortik at gmx.de
Thu Dec 11 16:14:55 EST 2014


Hi Hartmut,

On 11.12.2014 12:42, Hartmut.Brandt at dlr.de wrote:
> Hi,
>
> looks like there is something broken with the option parser. I have
>
> AddOption('--build',
>    dest = 'build',
>    type = 'string',
>    nargs = 1,
>    action = 'store',
>    metavar = 'DIR',
>    default = '.',
>    help = 'build directory')
>
> AddOption('--prefix',
>    dest = 'build',
>    type = 'string',
>    nargs = 1,
>    action = 'store',
>    metavar = 'DIR',
>    default = '/ndvb',
>    help = 'build directory')
> in my SConstruct file. If I call
errm...did you already notice that you are using the same "dest" string 
for both of your options? I guess this is where your problems are coming 
from.

Best regards,

Dirk



More information about the Scons-users mailing list