|
1 | 1 | /* |
2 | 2 | * Copyright (c) 2016, 2018, Player, asie |
3 | | - * Copyright (c) 2016, 2021, FabricMC |
| 3 | + * Copyright (c) 2016, 2022, FabricMC |
4 | 4 | * |
5 | 5 | * This program is free software: you can redistribute it and/or modify |
6 | 6 | * it under the terms of the GNU Lesser General Public License as published by |
@@ -46,6 +46,7 @@ public static void main(String[] rawArgs) { |
46 | 46 | Set<String> forcePropagation = Collections.emptySet(); |
47 | 47 | File forcePropagationFile = null; |
48 | 48 | boolean ignoreConflicts = false; |
| 49 | + boolean useResolvedOwners = false; |
49 | 50 | boolean checkPackageAccess = false; |
50 | 51 | boolean fixPackageAccess = false; |
51 | 52 | boolean resolveMissing = false; |
@@ -91,6 +92,9 @@ public static void main(String[] rawArgs) { |
91 | 92 | case "ignoreconflicts": |
92 | 93 | ignoreConflicts = true; |
93 | 94 | break; |
| 95 | + case "useresolvedowners": |
| 96 | + useResolvedOwners = true; |
| 97 | + break; |
94 | 98 | case "checkpackageaccess": |
95 | 99 | checkPackageAccess = true; |
96 | 100 | break; |
@@ -145,7 +149,25 @@ public static void main(String[] rawArgs) { |
145 | 149 | } |
146 | 150 |
|
147 | 151 | 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"); |
149 | 171 | System.exit(1); |
150 | 172 | } |
151 | 173 |
|
@@ -212,6 +234,7 @@ public static void main(String[] rawArgs) { |
212 | 234 | .propagateBridges(propagateBridges) |
213 | 235 | .removeFrames(removeFrames) |
214 | 236 | .ignoreConflicts(ignoreConflicts) |
| 237 | + .useResolvedOwners(useResolvedOwners) |
215 | 238 | .checkPackageAccess(checkPackageAccess) |
216 | 239 | .fixPackageAccess(fixPackageAccess) |
217 | 240 | .resolveMissing(resolveMissing) |
|
0 commit comments