aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar dslomov <dslomov@google.com>2017-05-31 12:08:14 +0200
committerGravatar László Csomor <laszlocsomor@google.com>2017-05-31 13:53:53 +0200
commitb707c8b1366b868f521810685226f95cbe352ce1 (patch)
tree3c97fd9e64ad060b8d4842744259aae9d3c95040 /src
parentdba22f337a20d3e8f3ac8dfd23bc6fa69e4528da (diff)
Make --aspects a repeatable flag.
RELNOTES: '--aspects' can occur more than once on the command line. PiperOrigin-RevId: 157568229
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/google/devtools/build/lib/buildtool/BuildRequest.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/buildtool/BuildRequest.java b/src/main/java/com/google/devtools/build/lib/buildtool/BuildRequest.java
index 8b692716a1..2384e31c9a 100644
--- a/src/main/java/com/google/devtools/build/lib/buildtool/BuildRequest.java
+++ b/src/main/java/com/google/devtools/build/lib/buildtool/BuildRequest.java
@@ -311,8 +311,14 @@ public class BuildRequest implements OptionsClassProvider {
name = "aspects",
converter = Converters.CommaSeparatedOptionListConverter.class,
defaultValue = "",
- optionUsageRestrictions = OptionUsageRestrictions.UNDOCUMENTED, // for now
- help = "List of top-level aspects"
+ allowMultiple = true,
+ help =
+ "Comma-separated list of aspects to be applied to top-level targets. All aspects "
+ + "are applied to all top-level targets independently. Aspects are specified in "
+ + "the form <bzl-file-label>%<aspect_name>, "
+ + "for example '//tools:my_def.bzl%my_aspect', where 'my_aspect' is a top-level "
+ + "value from from a file tools/my_def.bzl"
+
)
public List<String> aspects;