Skip to content

Commit d2539ff

Browse files
committed
Add --useResolvedOwners arg, improve cli help
1 parent ea5c57e commit d2539ff

3 files changed

Lines changed: 27 additions & 4 deletions

File tree

src/main/java/net/fabricmc/tinyremapper/AsmRemapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2016, 2018, Player, asie
3-
* Copyright (c) 2018, 2021, FabricMC
3+
* Copyright (c) 2018, 2022, FabricMC
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by

src/main/java/net/fabricmc/tinyremapper/Main.java

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2016, 2018, Player, asie
3-
* Copyright (c) 2016, 2021, FabricMC
3+
* Copyright (c) 2016, 2022, FabricMC
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by
@@ -46,6 +46,7 @@ public static void main(String[] rawArgs) {
4646
Set<String> forcePropagation = Collections.emptySet();
4747
File forcePropagationFile = null;
4848
boolean ignoreConflicts = false;
49+
boolean useResolvedOwners = false;
4950
boolean checkPackageAccess = false;
5051
boolean fixPackageAccess = false;
5152
boolean resolveMissing = false;
@@ -91,6 +92,9 @@ public static void main(String[] rawArgs) {
9192
case "ignoreconflicts":
9293
ignoreConflicts = true;
9394
break;
95+
case "useresolvedowners":
96+
useResolvedOwners = true;
97+
break;
9498
case "checkpackageaccess":
9599
checkPackageAccess = true;
96100
break;
@@ -145,7 +149,25 @@ public static void main(String[] rawArgs) {
145149
}
146150

147151
if (args.size() < 5) {
148-
System.out.println("usage: <input> <output> <mappings> <from> <to> [<classpath>]... [--reverse] [--forcePropagation=<file>] [--propagatePrivate] [--ignoreConflicts]");
152+
System.out.printf("usage: <input> <output> <mappings> <from> <to> [<classpath>]... [OPTIONS]%n"
153+
+ "options:%n"
154+
+ " --ignoreFieldDesc%n"
155+
+ " --forcePropagation=<file>%n"
156+
+ " --propagatePrivate%n"
157+
+ " --propagateBridges=(disabled|enabled|compatible)%n"
158+
+ " --removeFrames%n"
159+
+ " --ignoreConflicts%n"
160+
+ " --useResolvedOwners%n"
161+
+ " --checkPackagAaccess%n"
162+
+ " --fixPackageAccess%n"
163+
+ " --resolveMissing%n"
164+
+ " --rebuildSourceFilenames%n"
165+
+ " --skipLocalVariableMapping%n"
166+
+ " --renameInvalidLocals%n"
167+
+ " --invalidLvNamePattern=<pattern>%n"
168+
+ " --nonClassCopyMode=(unchanged|fixmeta|skipmeta)%n"
169+
+ " --threads=<n>%n"
170+
+ " --mixin%n");
149171
System.exit(1);
150172
}
151173

@@ -212,6 +234,7 @@ public static void main(String[] rawArgs) {
212234
.propagateBridges(propagateBridges)
213235
.removeFrames(removeFrames)
214236
.ignoreConflicts(ignoreConflicts)
237+
.useResolvedOwners(useResolvedOwners)
215238
.checkPackageAccess(checkPackageAccess)
216239
.fixPackageAccess(fixPackageAccess)
217240
.resolveMissing(resolveMissing)

src/main/java/net/fabricmc/tinyremapper/TinyRemapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2016, 2018, Player, asie
3-
* Copyright (c) 2016, 2021, FabricMC
3+
* Copyright (c) 2016, 2022, FabricMC
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU Lesser General Public License as published by

0 commit comments

Comments
 (0)