diff options
| author | 2020-06-12 14:14:56 +0200 | |
|---|---|---|
| committer | 2020-06-12 08:14:56 -0400 | |
| commit | d7b7832680178bbc3cd45f1934c42dc3c79f6996 (patch) | |
| tree | 9f67f5f69e94d69eb79b910671a5bc4ab7e1b89a /enigma-cli | |
| parent | Fix not being able to connect to server (diff) | |
| download | enigma-d7b7832680178bbc3cd45f1934c42dc3c79f6996.tar.gz enigma-d7b7832680178bbc3cd45f1934c42dc3c79f6996.tar.xz enigma-d7b7832680178bbc3cd45f1934c42dc3c79f6996.zip | |
Fix decompile command (#278)
Diffstat (limited to 'enigma-cli')
| -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)); |