From e798dbe398a2b39d02e50499d9c342bc76796c4b Mon Sep 17 00:00:00 2001 From: Paul Cody Johnston Date: Sat, 9 Oct 2021 13:18:37 -0600 Subject: [PATCH] Document behaviour of extra_args with bazel run Fixes #536 --- README.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 1570dce79..4fae3866f 100644 --- a/README.rst +++ b/README.rst @@ -302,7 +302,10 @@ The following attributes are available on the ``gazelle`` rule. +----------------------+---------------------+--------------------------------------+ | :param:`extra_args` | :type:`string_list` | :value:`[]` | +----------------------+---------------------+--------------------------------------+ -| A list of extra command line arguments passed to Gazelle. | +| A list of extra command line arguments passed to Gazelle. Note that | +| ``extra_args`` are suppressed by extra command line args (e.g. | +| ``bazel run //:gazelle -- subdir``. | +| See https://github.com/bazelbuild/bazel-gazelle/issues/536 for explanation. | +----------------------+---------------------+--------------------------------------+ | :param:`command` | :type:`string` | :value:`update` | +----------------------+---------------------+--------------------------------------+