From 538655177f12d87172006c2b880574d668484567 Mon Sep 17 00:00:00 2001 From: shartte Date: Thu, 4 Jul 2024 15:42:40 +0200 Subject: [PATCH] Fix behaviour of --parchment-javadoc parameter (#31) --- .../net/neoforged/jst/parchment/ParchmentTransformer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/parchment/src/main/java/net/neoforged/jst/parchment/ParchmentTransformer.java b/parchment/src/main/java/net/neoforged/jst/parchment/ParchmentTransformer.java index 7579d35..9f7f233 100644 --- a/parchment/src/main/java/net/neoforged/jst/parchment/ParchmentTransformer.java +++ b/parchment/src/main/java/net/neoforged/jst/parchment/ParchmentTransformer.java @@ -18,7 +18,12 @@ public class ParchmentTransformer implements SourceTransformer { @CommandLine.Option(names = "--parchment-mappings", required = true, description = "The location of the Parchment mappings file") public Path mappingsPath; - @CommandLine.Option(names = "--parchment-javadoc", description = "Whether Parchment javadocs should be applied", negatable = true) + @CommandLine.Option( + names = "--parchment-javadoc", + description = "Whether Parchment javadocs should be applied", + negatable = true, + fallbackValue = "true" + ) public boolean enableJavadoc = true; @CommandLine.Option(names = "--parchment-conflict-prefix", description = "Apply the prefix specified if a Parchment parameter name conflicts with existing variable names")