rename jadx-cli, update build scripts

This commit is contained in:
Skylot
2013-07-27 15:43:07 +04:00
parent 67eb55a95d
commit 1f21760bbe
7 changed files with 19 additions and 27 deletions
@@ -80,6 +80,7 @@ public class JadxArgs implements IJadxArgs {
processArgs();
} catch (JadxException e) {
LOG.error(e.getMessage());
printUsage();
System.exit(1);
}
}
@@ -103,10 +104,13 @@ public class JadxArgs implements IJadxArgs {
if (input.isEmpty()) {
if (inputRequired)
throw new JadxException("Please specify at least one input file");
throw new JadxException("Please specify input file");
else
return;
}
if (input.size() > 1) {
throw new JadxException("Only one input file is supported");
}
if (outDirName == null) {
File file = new File(files.get(0));
@@ -129,6 +133,7 @@ public class JadxArgs implements IJadxArgs {
JCommander jc = new JCommander(this);
// print usage in not sorted fields order (by default its sorted by description)
PrintStream out = System.out;
out.println();
out.println("jadx - dex to java decompiler, version: " + Consts.JADX_VERSION);
out.println();
out.println("usage: jadx [options] " + jc.getMainParameterDescription());
@@ -2,11 +2,7 @@ package jadx.cli;
import jadx.api.Decompiler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class JadxCLI {
private static final Logger LOG = LoggerFactory.getLogger(JadxCLI.class);
public static void main(String[] args) {
JadxArgs jadxArgs = new JadxArgs(args, true);