https://pantsbuild.org/ logo
#development
Title
# development
w

witty-crayon-22786

08/23/2019, 1:23 AM
should I be able to request
ClocBinary
(or any other class representing a binary tool) as a subject of an
@rule
?
yes, with an
optionable_rule
, because it is a
Subsystem
h

hundreds-breakfast-49010

08/23/2019, 9:28 PM
I don't 100% understand how `optionable_rule`s work
it seems like, from files like
create_requirements_pex.py
, that if I want to use a subclass of
Subsystem
as a rule input
I need to have
optionable_rule(Subsystem)
in the
rules()
output of my module?
w

witty-crayon-22786

08/23/2019, 10:05 PM
yes
optionable_rule
creates a
@rule
that constructs an
Optionable
(which is a super class of
Subsystem
)