Skip to content

Commit

Permalink
Add --useResolvedOwners arg, improve cli help
Browse files Browse the repository at this point in the history
  • Loading branch information
sfPlayer1 committed Mar 14, 2022
1 parent ea5c57e commit 19fa561
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/main/java/net/fabricmc/tinyremapper/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public static void main(String[] rawArgs) {
Set<String> forcePropagation = Collections.emptySet();
File forcePropagationFile = null;
boolean ignoreConflicts = false;
boolean useResolvedOwners = false;
boolean checkPackageAccess = false;
boolean fixPackageAccess = false;
boolean resolveMissing = false;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -145,7 +149,25 @@ public static void main(String[] rawArgs) {
}

if (args.size() < 5) {
System.out.println("usage: <input> <output> <mappings> <from> <to> [<classpath>]... [--reverse] [--forcePropagation=<file>] [--propagatePrivate] [--ignoreConflicts]");
System.out.printf("usage: <input> <output> <mappings> <from> <to> [<classpath>]... [OPTIONS]%n"
+ "options:%n"
+ " --ignoreFieldDesc%n"
+ " --forcePropagation=<file>%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=<pattern>%n"
+ " --nonClassCopyMode=(unchanged|fixmeta|skipmeta)%n"
+ " --threads=<n>%n"
+ " --mixin%n");
System.exit(1);
}

Expand Down Expand Up @@ -212,6 +234,7 @@ public static void main(String[] rawArgs) {
.propagateBridges(propagateBridges)
.removeFrames(removeFrames)
.ignoreConflicts(ignoreConflicts)
.useResolvedOwners(useResolvedOwners)
.checkPackageAccess(checkPackageAccess)
.fixPackageAccess(fixPackageAccess)
.resolveMissing(resolveMissing)
Expand Down

0 comments on commit 19fa561

Please sign in to comment.