An iterator over option registration args.

Review Request #2478 - Created July 14, 2015 and submitted

Information
Benjy Weinberger
pants
20d1126...
Reviewers
pants-reviews
stuhood

See code comments for details.

To use in a task:

for name, args, kwargs in self.context.options.registration_args_iter_for_scope(self.options_scope):
if <some condition on args/kwargs>:
value = self.get_options()[name]
... do stuff with value ...

CI passes apart from unrelated codegen issue: https://travis-ci.org/pantsbuild/pants/builds/70832969

Issues

  • 0
  • 0
  • 1
  • 1
Description From Last Updated
Benjy Weinberger
Cody Gibb
Cody Gibb
Stu Hood
Benjy Weinberger
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted as 5e0937f81ce8e327c13c79299518351b1b1f80d2.

Loading...