Allow more succinct invocations with passthru args.

Review Request #1323 — Created Nov. 12, 2014 and submitted

benjyw
pants
ba01c3f...
pants-reviews
ity, jsirois, patricklaw, zundel

If passthru args "belong" to a goal scope then all tasks in that goal get them.

E.g., you can do:

pants goal run <python-target> -- passthru args

and the run.py task will get the passthru args. So will run.jvm, but that's OK
because it's a no-op for <python-target>.

This obviously is only good when in practice only one passthru-arg-supporting
task in that goal is not a no-op. However that is the common case.



NH
  1. Tests?

    1. I think this change looks good, but concur with Nick, it would be nice to get some tests in place.

    2. Good idea. Added a test.

    3. Thanks!

  2. 
      
PA
  1. Ship It!

  2. 
      
BE
ZU
  1. Ship It!

  2. 
      
BE
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted as b86be0e006136dcf7d721c8adef0278634a67a8d.
Loading...