allow -v multiple times

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@568 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 8039178f9e
commit 0996e182b3
  1. 7
      jode/jode/obfuscator/Main.java

@ -25,7 +25,7 @@ import java.lang.reflect.Modifier;
import java.io.PrintStream; import java.io.PrintStream;
public class Obfuscator { public class Obfuscator {
public static boolean isVerbose = false; public static int verboseLevel = 0;
public static boolean isDebugging = false; public static boolean isDebugging = false;
public static boolean shouldStrip = true; public static boolean shouldStrip = true;
@ -48,7 +48,8 @@ public class Obfuscator {
public static void usage() { public static void usage() {
err.println("usage: jode.Obfuscator flags* [class | package]*"); err.println("usage: jode.Obfuscator flags* [class | package]*");
err.println("\t[-v] "+"Verbose output"); err.println("\t[-v] "+
"Verbose output (allowed multiple times).");
err.println("\t[-debug] "+"Debugging"); err.println("\t[-debug] "+"Debugging");
err.println("\t[-nostrip] "+ err.println("\t[-nostrip] "+
"Don't strip not needed methods"); "Don't strip not needed methods");
@ -99,7 +100,7 @@ public class Obfuscator {
for (i=0; i<params.length && params[i].startsWith("-"); i++) { for (i=0; i<params.length && params[i].startsWith("-"); i++) {
if (params[i].equals("-v")) if (params[i].equals("-v"))
isVerbose = true; verboseLevel++;
else if (params[i].equals("-debug")) else if (params[i].equals("-debug"))
isDebugging = true; isDebugging = true;
else if (params[i].equals("-nostrip")) else if (params[i].equals("-nostrip"))

Loading…
Cancel
Save