Skip to content

Commit

Permalink
Fix and improve context.args.add documentation.
Browse files Browse the repository at this point in the history
RELNOTES: None
PiperOrigin-RevId: 169753517
  • Loading branch information
tomlu authored and katre committed Sep 25, 2017
1 parent 529d7ea commit fefccdb
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ private static String convertLatin1ToUtf8(String latin1) {
+ "args.add(\"--bar\")\n"
+ "args.add(bar_deps, join_with=\",\")\n"
+ "ctx.run(\n"
+ " arguments = args,\n"
+ " arguments = [args],\n"
+ " ...\n"
+ ")\n"
+ "# Expands to [\n"
Expand Down Expand Up @@ -935,7 +935,9 @@ static class Args implements SkylarkValue {
positional = false,
defaultValue = "None",
noneable = true,
doc = "The passed objects are passed through a map function. "
doc =
"The passed objects are passed through a map function. "
+ "For vector args the function is given a list and is expected to return a list."
)
},
useLocation = true
Expand Down

0 comments on commit fefccdb

Please sign in to comment.