Skip to content

Commit b185860

Browse files
use MAPPING_OUTPUT instead of OUTPUT_FOLDER arg in InvertMappingsCommand
1 parent e65e919 commit b185860

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

enigma-cli/src/main/java/org/quiltmc/enigma/command/InvertMappingsCommand.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,15 @@
1717

1818
import static org.quiltmc.enigma.command.CommonArguments.DEOBFUSCATED_NAMESPACE;
1919
import static org.quiltmc.enigma.command.CommonArguments.INPUT_MAPPINGS;
20+
import static org.quiltmc.enigma.command.CommonArguments.MAPPING_OUTPUT;
2021
import static org.quiltmc.enigma.command.CommonArguments.OBFUSCATED_NAMESPACE;
2122

2223
public final class InvertMappingsCommand extends Command {
23-
private static final Argument<Path> OUTPUT_FOLDER = Argument.ofWritablePath("output-folder",
24-
"""
25-
A path to the file or folder to write output to."""
26-
);
27-
2824
public static final InvertMappingsCommand INSTANCE = new InvertMappingsCommand();
2925

3026
private InvertMappingsCommand() {
3127
super(
32-
ImmutableList.of(INPUT_MAPPINGS, OUTPUT_FOLDER),
28+
ImmutableList.of(INPUT_MAPPINGS, MAPPING_OUTPUT),
3329
ImmutableList.of(OBFUSCATED_NAMESPACE, DEOBFUSCATED_NAMESPACE)
3430
);
3531
}
@@ -38,7 +34,7 @@ private InvertMappingsCommand() {
3834
protected void runImpl(Map<String, String> args) throws IOException, MappingParseException {
3935
run(
4036
INPUT_MAPPINGS.get(args),
41-
OUTPUT_FOLDER.get(args),
37+
MAPPING_OUTPUT.get(args),
4238
OBFUSCATED_NAMESPACE.get(args),
4339
DEOBFUSCATED_NAMESPACE.get(args)
4440
);

0 commit comments

Comments
 (0)