Skip to content

Commit

Permalink
Replace --aspect with --aspects.
Browse files Browse the repository at this point in the history
Fixes #1375.

--
MOS_MIGRATED_REVID=124706979
  • Loading branch information
hermione521 committed Jun 13, 2016
1 parent 2c725b5 commit 08be2f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions blog/_posts/2016-06-10-ide-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ in certain packages, etc). E4b plugin then invokes bazel as follows:

```
bazel build //java/com/company/example:main \
--aspect e4b_aspect.bzl%e4b_aspect \
--aspects e4b_aspect.bzl%e4b_aspect \
--output_groups ide-info
```

(some details are omitted for clarity; see
[e4b source](https://github.com/bazelbuild/e4b/blob/master/com.google.devtools.bazel.e4b/src/com/google/devtools/bazel/e4b/command/BazelCommand.java) for complete
invocation)

The "--aspect" flag directs Bazel to apply e4b_aspect, exported from
The "--aspects" flag directs Bazel to apply e4b_aspect, exported from
e4bazel.bzl Skylark extension, to target //java/com/company/example:main.

The aspect is then applied transitively to the dependencies of the specified
Expand Down
6 changes: 3 additions & 3 deletions docs/skylark/aspects.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ on the target objects representing its `proto_deps` attribute values.

### Applying aspects from command line.

Aspects can also be applied on the command line, using the `--aspect` flag:
Aspects can also be applied on the command line, using the `--aspects` flag:


```
bazel build //java/com/company/example:main \
--aspect path/to/extension.bzl%metal_proto_aspect
--aspects path/to/extension.bzl%metal_proto_aspect
```

`--aspect` flag takes one argument, which is a specification of the aspect in
`--aspects` flag takes one argument, which is a specification of the aspect in
the format `<extension file path>%<aspect top-level name>`.


0 comments on commit 08be2f0

Please sign in to comment.