From db806b12618f36785c3c0a056a80e0fa6bceef6f Mon Sep 17 00:00:00 2001 From: "JesusFreke@JesusFreke.com" Date: Sat, 3 Apr 2010 23:03:09 +0000 Subject: [PATCH] minor reformatting - reorder the options git-svn-id: https://smali.googlecode.com/svn/trunk@698 55b6fa8a-2a1e-11de-a435-ffa8d773f76a --- .../src/main/java/org/jf/baksmali/main.java | 54 ++++++++++--------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/baksmali/src/main/java/org/jf/baksmali/main.java b/baksmali/src/main/java/org/jf/baksmali/main.java index 6b42f065..b9988970 100644 --- a/baksmali/src/main/java/org/jf/baksmali/main.java +++ b/baksmali/src/main/java/org/jf/baksmali/main.java @@ -339,38 +339,12 @@ public class main { .withDescription("prints the help message then exits. Specify twice for debug options") .create("?"); - Option noDisassemblyOption = OptionBuilder.withLongOpt("no-disassembly") - .withDescription("suppresses the output of the disassembly") - .create("N"); - - Option dumpOption = OptionBuilder.withLongOpt("dump-to") - .withDescription("dumps the given dex file into a single annotated dump file named FILE" + - " (.dump by default), along with the normal disassembly.") - .hasOptionalArg() - .withArgName("FILE") - .create("D"); - - Option writeDexOption = OptionBuilder.withLongOpt("write-dex") - .withDescription("additionally rewrites the input dex file to FILE") - .hasArg() - .withArgName("FILE") - .create("W"); - Option outputDirOption = OptionBuilder.withLongOpt("output") .withDescription("the directory where the disassembled files will be placed. The default is out") .hasArg() .withArgName("DIR") .create("o"); - Option sortOption = OptionBuilder.withLongOpt("sort") - .withDescription("sort the items in the dex file into a canonical order before dumping/writing") - .create("S"); - - Option fixSignedRegisterOption = OptionBuilder.withLongOpt("fix-signed-registers") - .withDescription("when dumping or rewriting, fix any registers in the debug info that are encoded as" + - " a signed value") - .create("F"); - Option noParameterRegistersOption = OptionBuilder.withLongOpt("no-parameter-registers") .withDescription("use the v syntax instead of the p syntax for registers mapped to method " + "parameters") @@ -428,6 +402,34 @@ public class main { .withDescription("add comments to the disassembly containing the code offset for each address") .create("f"); + + + Option dumpOption = OptionBuilder.withLongOpt("dump-to") + .withDescription("dumps the given dex file into a single annotated dump file named FILE" + + " (.dump by default), along with the normal disassembly.") + .hasOptionalArg() + .withArgName("FILE") + .create("D"); + + Option noDisassemblyOption = OptionBuilder.withLongOpt("no-disassembly") + .withDescription("suppresses the output of the disassembly") + .create("N"); + + Option writeDexOption = OptionBuilder.withLongOpt("write-dex") + .withDescription("additionally rewrites the input dex file to FILE") + .hasArg() + .withArgName("FILE") + .create("W"); + + Option sortOption = OptionBuilder.withLongOpt("sort") + .withDescription("sort the items in the dex file into a canonical order before dumping/writing") + .create("S"); + + Option fixSignedRegisterOption = OptionBuilder.withLongOpt("fix-signed-registers") + .withDescription("when dumping or rewriting, fix any registers in the debug info that are encoded as" + + " a signed value") + .create("F"); + Option verifyDexOption = OptionBuilder.withLongOpt("verify") .withDescription("perform bytecode verification") .create("V");