Hey, is there a way to tweak/access the args that ...
# plugins
c
Hey, is there a way to tweak/access the args that a user has provided to a run goal? ex
pants run target -- arg0 arg1
, is there a way to get arg0 and arg1?
1
h
They are the "passthru args" in the options system
A goal can register (at most one) option with
passthrough=True
and that option will receive those passthrough values
c
right, thanks! I forgot what they were called
h
It's all handled in the options parser, downstream from that I don't think you can know that the values originated that way
c
I think I can get what I need, the helm goal does basically what I need, adding an arg if it's not already been passed through passthrough (git blame even says I did that)