https://pantsbuild.org/ logo
r

ripe-gigabyte-88964

04/14/2023, 2:03 AM
Is there a complete list of the different parameters available to goal rules? I'm trying to define a goal that takes an additional command line argument.
b

broad-processor-92400

04/14/2023, 2:09 AM
I think you can add additional parameters by defining
...Option
class vars on a
GoalSubsystem
, e.g. https://github.com/pantsbuild/pants/blob/710c198c2fad01581582367f72b11f85efbe9d8c/src/python/pants/core/goals/test.py#L503 is what defines the
pants test --debug
option.
(searching for
TestSubsystem
in that file has some hints about how it is used)