diff options
Diffstat (limited to 'enigma-cli/src/main')
| -rw-r--r-- | enigma-cli/src/main/java/cuchaz/enigma/command/DecompileCommand.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/enigma-cli/src/main/java/cuchaz/enigma/command/DecompileCommand.java b/enigma-cli/src/main/java/cuchaz/enigma/command/DecompileCommand.java index 3d15dac6..cc628639 100644 --- a/enigma-cli/src/main/java/cuchaz/enigma/command/DecompileCommand.java +++ b/enigma-cli/src/main/java/cuchaz/enigma/command/DecompileCommand.java | |||
| @@ -22,12 +22,12 @@ public class DecompileCommand extends Command { | |||
| 22 | 22 | ||
| 23 | @Override | 23 | @Override |
| 24 | public boolean isValidArgument(int length) { | 24 | public boolean isValidArgument(int length) { |
| 25 | return length == 2 || length == 3; | 25 | return length == 3 || length == 4; |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | @Override | 28 | @Override |
| 29 | public void run(String... args) throws Exception { | 29 | public void run(String... args) throws Exception { |
| 30 | String decompilerName = getArg(args, 1, "decompiler", true); | 30 | String decompilerName = getArg(args, 0, "decompiler", true); |
| 31 | Path fileJarIn = getReadableFile(getArg(args, 1, "in jar", true)).toPath(); | 31 | Path fileJarIn = getReadableFile(getArg(args, 1, "in jar", true)).toPath(); |
| 32 | Path fileJarOut = getWritableFolder(getArg(args, 2, "out folder", true)).toPath(); | 32 | Path fileJarOut = getWritableFolder(getArg(args, 2, "out folder", true)).toPath(); |
| 33 | Path fileMappings = getReadablePath(getArg(args, 3, "mappings file", false)); | 33 | Path fileMappings = getReadablePath(getArg(args, 3, "mappings file", false)); |