Fix name arg documentation for native_binary (#338)

This commit is contained in:
Geoffrey Martin-Noble 2022-01-12 08:28:43 -08:00 committed by GitHub
parent 6e30a77347
commit ecc11f9a4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ You can "bazel run" this rule like any other binary rule, and use it as a tool i
| Name | Description | Default Value | | Name | Description | Default Value |
| :------------- | :------------- | :------------- | | :------------- | :------------- | :------------- |
| <a id="native_binary-name"></a>name | The name of the test rule. | none | | <a id="native_binary-name"></a>name | The name of the rule. | none |
| <a id="native_binary-src"></a>src | label; path of the pre-built executable | none | | <a id="native_binary-src"></a>src | label; path of the pre-built executable | none |
| <a id="native_binary-out"></a>out | output; an output name for the copy of the binary. (Bazel requires that this rule make a copy of 'src'.) | none | | <a id="native_binary-out"></a>out | output; an output name for the copy of the binary. (Bazel requires that this rule make a copy of 'src'.) | none |
| <a id="native_binary-data"></a>data | list of labels; data dependencies | <code>None</code> | | <a id="native_binary-data"></a>data | list of labels; data dependencies | <code>None</code> |

View File

@ -72,7 +72,7 @@ def native_binary(name, src, out, data = None, **kwargs):
You can "bazel run" this rule like any other binary rule, and use it as a tool in genrule.tools for example. You can also augment the binary with runfiles. You can "bazel run" this rule like any other binary rule, and use it as a tool in genrule.tools for example. You can also augment the binary with runfiles.
Args: Args:
name: The name of the test rule. name: The name of the rule.
src: label; path of the pre-built executable src: label; path of the pre-built executable
out: output; an output name for the copy of the binary. (Bazel requires that this rule make a copy of 'src'.) out: output; an output name for the copy of the binary. (Bazel requires that this rule make a copy of 'src'.)
data: list of labels; data dependencies data: list of labels; data dependencies