fix: use only long builder for "--only-main-classes"

This commit is contained in:
Connor Tumbleson 2019-07-14 07:29:47 -04:00
parent 9edcc78ee5
commit bae5aab78a
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75

View File

@ -112,7 +112,7 @@ public class Main {
if (cli.hasOption("s") || cli.hasOption("no-src")) { if (cli.hasOption("s") || cli.hasOption("no-src")) {
decoder.setDecodeSources(ApkDecoder.DECODE_SOURCES_NONE); decoder.setDecodeSources(ApkDecoder.DECODE_SOURCES_NONE);
} }
if (cli.hasOption("onlymainclasses")) { if (cli.hasOption("only-main-classes")) {
decoder.setDecodeSources(ApkDecoder.DECODE_SOURCES_SMALI_ONLY_MAIN_CLASSES); decoder.setDecodeSources(ApkDecoder.DECODE_SOURCES_SMALI_ONLY_MAIN_CLASSES);
} }
if (cli.hasOption("d") || cli.hasOption("debug")) { if (cli.hasOption("d") || cli.hasOption("debug")) {