@@ -66,10 +66,10 @@ Open `bazel-diff-example.sh` to see how this is implemented. This is purely an e
6666` bazel-diff ` Command
6767
6868``` terminal
69- Usage: bazel-diff [-htV] -b=<bazelPath> [-co=<bazelCommandOptions>]
70- [-fh=<finalHashesJSONPath >] [-o=<outputPath >]
71- [-sh=<startingHashesJSONPath >] [-so=<bazelStartupOptions >]
72- -w=<workspacePath> [COMMAND]
69+ Usage: bazel-diff [-hV] [--verbose] [-aq=<avoidQuery>] -b=<bazelPath>
70+ [-co=<bazelCommandOptions >] [-fh=<finalHashesJSONPath >]
71+ [-o=<outputPath >] [-sh=<startingHashesJSONPath >]
72+ [-so=<bazelStartupOptions>] -w=<workspacePath> [COMMAND]
7373Writes to a file the impacted targets between two Bazel graph JSON files
7474 -aq, --avoid-query=<avoidQuery>
7575 A Bazel query string, any targets that pass this query will
@@ -93,14 +93,15 @@ Writes to a file the impacted targets between two Bazel graph JSON files
9393 Additional space separated Bazel client startup options used
9494 when invoking Bazel
9595 -V, --version Print version information and exit.
96+ --verbose Enable logging around Bazel invocations
9697 -w, --workspacePath=<workspacePath>
9798 Path to Bazel workspace directory.
9899```
99100
100101` modified-filepaths ` Command
101102
102103``` terminal
103- Usage: bazel-diff modified-filepaths [-hV] -b=<bazelPath>
104+ Usage: bazel-diff modified-filepaths [-hV] [--verbose] -b=<bazelPath>
104105 [-co=<bazelCommandOptions>]
105106 [-so=<bazelStartupOptions>]
106107 -w=<workspacePath> <startingGitRevision>
@@ -120,14 +121,15 @@ Writes to the file the modified filepaths between two revisions.
120121 Additional space separated Bazel client startup
121122 options used when invoking Bazel
122123 -V, --version Print version information and exit.
124+ --verbose Enable logging around Bazel invocations
123125 -w, --workspacePath=<workspacePath>
124126 Path to Bazel workspace directory.
125127```
126128
127129` generate-hashes ` Command
128130
129131``` terminal
130- Usage: bazel-diff generate-hashes [-hV] -b=<bazelPath>
132+ Usage: bazel-diff generate-hashes [-hV] [--verbose] -b=<bazelPath>
131133 [-co=<bazelCommandOptions>]
132134 [-m=<modifiedFilepaths>]
133135 [-so=<bazelStartupOptions>]
@@ -150,6 +152,7 @@ workspace.
150152 Additional space separated Bazel client startup options
151153 used when invoking Bazel
152154 -V, --version Print version information and exit.
155+ --verbose Enable logging around Bazel invocations
153156 -w, --workspacePath=<workspacePath>
154157 Path to Bazel workspace directory.
155158```
@@ -166,6 +169,14 @@ To run the project
166169bazel run :bazel-diff -- bazel-diff -h
167170```
168171
172+ #### Debugging
173+
174+ To run ` bazel-diff ` with debug logging, run your commands with the ` verbose ` config like so:
175+
176+ ``` terminal
177+ bazel run :bazel-diff --config=verbose -- bazel-diff -h
178+ ```
179+
169180### Run Via JAR Release
170181
171182``` terminal
0 commit comments