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

Bill Deegan bill at baddogconsulting.com
Thu May 17 14:55:09 EDT 2018


then check sys.argv ..

You might file a bug on github and indicate it's a feature request.
With your use case and a simple SConstruct (With comment to indicate what
you want to do)

So we don't lose the request.

On Thu, May 17, 2018 at 2:31 PM, Daniel Moody <dmoody256 at gmail.com> wrote:

> 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
>>
>
> _______________________________________________
> 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/62d9cdc7/attachment.html>


More information about the Scons-users mailing list