Commit fe8966d
Name --replace in the error for --dry-run with in-place formatting
"cannot use --dry-run and --in-place at the same time" named a flag
that does not exist: in-place formatting is -i, -r, -replace or
--replace (#40, from google/google-java-format#1094). The message now
says --replace, the long form the usage text shows.
This ports google/google-java-format#1451 by rootkiller6788, including
its test for the --replace --dry-run spelling next to -i -n.1 parent cee2533 commit fe8966d
2 files changed
Lines changed: 9 additions & 2 deletions
File tree
- open-java-format/src
- main/java/com/palantir/javaformat/java
- test/java/com/palantir/javaformat/java
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
105 | 112 | | |
106 | 113 | | |
107 | 114 | | |
108 | 115 | | |
109 | | - | |
| 116 | + | |
110 | 117 | | |
111 | 118 | | |
112 | 119 | | |
| |||
0 commit comments