diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java b/src/main/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java index d445a91567..1243bba49b 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/repository/skylark/SkylarkRepositoryContext.java @@ -421,11 +421,19 @@ public class SkylarkRepositoryContext { } @SkylarkCallable( - name = "which", - doc = - "Returns the path of the corresponding program or None " - + "if there is no such program in the path", - allowReturnNones = true + name = "which", + doc = + "Returns the path of the corresponding program or None " + + "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("\\")) { |