17
17
18
18
import static org .quiltmc .enigma .command .CommonArguments .DEOBFUSCATED_NAMESPACE ;
19
19
import static org .quiltmc .enigma .command .CommonArguments .INPUT_MAPPINGS ;
20
+ import static org .quiltmc .enigma .command .CommonArguments .MAPPING_OUTPUT ;
20
21
import static org .quiltmc .enigma .command .CommonArguments .OBFUSCATED_NAMESPACE ;
21
22
22
23
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
-
28
24
public static final InvertMappingsCommand INSTANCE = new InvertMappingsCommand ();
29
25
30
26
private InvertMappingsCommand () {
31
27
super (
32
- ImmutableList .of (INPUT_MAPPINGS , OUTPUT_FOLDER ),
28
+ ImmutableList .of (INPUT_MAPPINGS , MAPPING_OUTPUT ),
33
29
ImmutableList .of (OBFUSCATED_NAMESPACE , DEOBFUSCATED_NAMESPACE )
34
30
);
35
31
}
@@ -38,7 +34,7 @@ private InvertMappingsCommand() {
38
34
protected void runImpl (Map <String , String > args ) throws IOException , MappingParseException {
39
35
run (
40
36
INPUT_MAPPINGS .get (args ),
41
- OUTPUT_FOLDER .get (args ),
37
+ MAPPING_OUTPUT .get (args ),
42
38
OBFUSCATED_NAMESPACE .get (args ),
43
39
DEOBFUSCATED_NAMESPACE .get (args )
44
40
);
0 commit comments