[Scons-users] "Partial" user options not working

Antoine Pelisse apelisse at gmail.com
Wed Mar 18 14:42:43 EDT 2015


Hi Scons users,

I have met a bug with "partially given user option". But code says more
than words:

---
~/test> cat SConstruct
AddOption('--something', action='store_true', dest='somewhere',
default=False)

print GetOption('somewhere')
~/test> scons
scons: Reading SConscript files ...
False
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
scons: done building targets.
~/test> scons --something
scons: Reading SConscript files ...
True
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
scons: done building targets.
~/test> scons --somethi
scons: Reading SConscript files ...
False
scons: done reading SConscript files.
scons: Building targets ...
scons: `.' is up to date.
scons: done building targets.
~/test> scons --version
SCons by Steven Knight et al.:
script: v2.3.4, 2014/09/27 12:51:43, by garyo on lubuntu
engine: v2.3.4, 2014/09/27 12:51:43, by garyo on lubuntu
engine path: ['/Users/apelisse/tools/lib/scons-2.3.4/SCons']
Copyright (c) 2001 - 2014 The SCons Foundation
---

I expect scons to either use my --somethi option, or to yell that it
doesn't exist. Not to ignore it. Or am I doing something wrong?

Thanks,
Antoine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20150318/93186034/attachment.html>


More information about the Scons-users mailing list