[Scons-users] How to tell if a node is an explicit command-line argument?

Bill Deegan bill at baddogconsulting.com
Sat Jul 25 15:56:00 EDT 2015


William,


On Sat, Jul 25, 2015 at 3:53 PM, William Blevins <wblevins001 at gmail.com>
wrote:

>
>
> On Sat, Jul 25, 2015 at 3:52 PM, William Blevins <wblevins001 at gmail.com>
> wrote:
>
>> Yes, but here is an example in case:
>>
>> File "a.c" exists
>> File "b.c" exists
>>
>> FS node representing "a.c" is node_a and representing "b.c" is node_b
>>
>> If I run "scons" or "scons a.o", then node_b.is_explicit_target (or some
>> other function name) returns False.
>> If I run "scons b.o" or "scons a.o b.o", then node_b.is_explicit_target
>> return True for both cases, but node_b.is_explicit_target return True only
>> for the second case.
>>
>>
> Copy-pasta error fixed below:
> If I run "scons b.o" or "scons a.o b.o", then node_b.is_explicit_target
> return True for both cases, but node_a.is_explicit_target return True only
> for the second case.
>

Isn't this what you'd expect?
I guess I'm missing where this doesn't answer your original question?
Also you can get the list of  command line arguments raw..

-Bill


>
>
>
>> V/R,
>> William
>>
>> On Sat, Jul 25, 2015 at 3:32 PM, Bill Deegan <bill at baddogconsulting.com>
>> wrote:
>>
>>> So you mean if scons was run as: scons a/b/c/d.exe ?
>>>
>>> On Sat, Jul 25, 2015 at 2:13 PM, William Blevins <wblevins001 at gmail.com>
>>> wrote:
>>>
>>>> Is there an easy way to determine if a Node was specified explicitly as
>>>> a command-line argument?
>>>>
>>>> V/R,
>>>> William
>>>>
>>>> _______________________________________________
>>>> 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/20150725/9a037982/attachment-0001.html>


More information about the Scons-users mailing list