Skip to content

Commit 67dcbdb

Browse files
author
suztomo
committed
Added note on executable
1 parent f4a6eff commit 67dcbdb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ The formatter can act on whole files, on limited lines (`--lines`), on specific
2020
offsets (`--offset`), passing through to standard-out (default) or altered
2121
in-place (`--replace`).
2222

23+
It is convenient to have a shell script named `google-java-format` with the
24+
java command:
25+
26+
```
27+
#!/bin/sh
28+
java -jar /path/to/google-java-format-1.7-all-deps.jar "$@"
29+
```
30+
2331
To reformat changed lines in a specific patch, use
2432
[`google-java-format-diff.py`](https://github.com/google/google-java-format/blob/master/scripts/google-java-format-diff.py).
2533

0 commit comments

Comments
 (0)