Support passthru args in tasks.
Review Request #1320 - Created Nov. 11, 2014 and submitted
|jinfeng, jsirois, patricklaw, zundel|
Tasks must declare that they take them.
The last task explicitly mentioned on the cmd-line gets them.
Implemented this for pytest.
Verified that this does what you expect:
./pants goal test.pytest compile tests/python/pants_test/option/ -- -s
Maybe I'm wrong, but I think this doesn't enforce that the args are added to the last scope referred to as a scope argument
If you run this
./pants goal test --resolve-ivy-some-ivy-flag awesome/target:: -- --junit-rocking-flag
the last scope in
_scope_to_flagswill be resolve.ivy not test. So, the test task won't get the passthru flags.
Addresses code review comment.
Revision 2 (+106 -58)