Add missing parameter documentation to the which method in repository_ctx.
@@ -424,8 +424,16 @@ public class SkylarkRepositoryContext {
name = "which",
doc =
"Returns the path of the corresponding program or None "
- + "if there is no such program in the path",
- allowReturnNones = true
+ + "if there is no such program in the path.",
+ allowReturnNones = true,
+ parameters = {
+ @Param(
+ name = "program",
+ type = String.class,
+ named = false,
+ doc = "Program to find in the path."
+ ),
+ }
)
public SkylarkPath which(String program) throws EvalException {
if (program.contains("/") || program.contains("\\")) {
