From b0bee1f0618c27beb7c2734fe75357a1c9ee3ba8 Mon Sep 17 00:00:00 2001 From: Player Date: Mon, 14 Mar 2022 20:19:34 +0100 Subject: [PATCH] Add --useResolvedOwners arg, improve cli help --- .../java/net/fabricmc/tinyremapper/Main.java | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/fabricmc/tinyremapper/Main.java b/src/main/java/net/fabricmc/tinyremapper/Main.java index e9c8c9e3..e12d35e5 100644 --- a/src/main/java/net/fabricmc/tinyremapper/Main.java +++ b/src/main/java/net/fabricmc/tinyremapper/Main.java @@ -46,6 +46,7 @@ public static void main(String[] rawArgs) { Set forcePropagation = Collections.emptySet(); File forcePropagationFile = null; boolean ignoreConflicts = false; + boolean useResolvedOwners = false; boolean checkPackageAccess = false; boolean fixPackageAccess = false; boolean resolveMissing = false; @@ -91,6 +92,9 @@ public static void main(String[] rawArgs) { case "ignoreconflicts": ignoreConflicts = true; break; + case "useresolvedowners": + useResolvedOwners = true; + break; case "checkpackageaccess": checkPackageAccess = true; break; @@ -145,7 +149,25 @@ public static void main(String[] rawArgs) { } if (args.size() < 5) { - System.out.println("usage: []... [--reverse] [--forcePropagation=] [--propagatePrivate] [--ignoreConflicts]"); + System.out.printf("usage: []... [OPTIONS]%n" + + "options:%n" + + " --ignoreFieldDesc%n" + + " --forcePropagation=%n" + + " --propagatePrivate%n" + + " --propagateBridges=(disabled|enabled|compatible)%n" + + " --removeFrames%n" + + " --ignoreConflicts%n" + + " --useResolvedOwners%n" + + " --checkPackagAaccess%n" + + " --fixPackageAccess%n" + + " --resolveMissing%n" + + " --rebuildSourceFilenames%n" + + " --skipLocalVariableMapping%n" + + " --renameInvalidLocals%n" + + " --invalidLvNamePattern=%n" + + " --nonClassCopyMode=(unchanged|fixmeta|skipmeta)%n" + + " --threads=%n" + + " --mixin%n"); System.exit(1); } @@ -212,6 +234,7 @@ public static void main(String[] rawArgs) { .propagateBridges(propagateBridges) .removeFrames(removeFrames) .ignoreConflicts(ignoreConflicts) + .useResolvedOwners(useResolvedOwners) .checkPackageAccess(checkPackageAccess) .fixPackageAccess(fixPackageAccess) .resolveMissing(resolveMissing)