Skip to content

Commit 20afe3e

Browse files
committed
1.0.10: fix --input-classpath on window and add --temp-dir to cli
1 parent e7d0d69 commit 20afe3e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

codebook-cli/src/main/java/io/papermc/codebook/cli/Main.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ static class InputFileOptions {
270270

271271
@CommandLine.Option(
272272
names = {"-c", "--input-classpath"},
273-
split = ":",
273+
split = ":(?!\\\\)",
274+
splitSynopsisLabel = ":",
274275
paramLabel = "<jar>",
275276
description =
276277
"Additional classpath jars, provided in standard classpath format (use : to separate jars on the path).")
@@ -309,6 +310,12 @@ static class InputFileOptions {
309310
defaultValue = "false")
310311
private boolean verbose;
311312

313+
@CommandLine.Option(
314+
names = {"--temp-dir"},
315+
paramLabel = "<temp-dir>",
316+
description = "The temp dir to work in.")
317+
private @Nullable Path tempDir;
318+
312319
public Main() {}
313320

314321
public static void main(final String[] args) {
@@ -462,6 +469,7 @@ private CodeBookContext createContext() {
462469
}
463470

464471
return CodeBookContext.builder()
472+
.tempDir(tempDir)
465473
.remapperJar(remapper)
466474
.mappings(mappings)
467475
.paramMappings(paramMappings)

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
group = io.papermc.codebook
2-
version = 1.0.9
2+
version = 1.0.10

0 commit comments

Comments
 (0)