[Scons-users] Checking args passed through scons option parser

Daniel Moody dmoody256 at gmail.com
Thu May 17 14:31:02 EDT 2018


What if the user set 1?

On Thu, May 17, 2018, 1:30 PM Bill Deegan <bill at baddogconsulting.com> wrote:

> Saw your SO question for this..
>
> If you know the default is 1, can't you just check if it's 1 and if so
> change the value to whatever you want the effective default to be?
>
> On Thu, May 17, 2018 at 2:19 PM, Daniel Moody <dmoody256 at gmail.com> wrote:
>
>> I want to override the num_jobs option, but only of it wasn't set by the
>> user.
>>
>> I could imagine a way to do this by checking and regexing the sys.argv,
>> but how do you do it through scons option parser?
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20180517/d0fc1fa9/attachment.html>


More information about the Scons-users mailing list