refactor: remove pollution of global command and move to advanced

- removes "-onlymainclasses" for long "--only-main-classes"
This commit is contained in:
Connor Tumbleson 2019-07-14 07:23:18 -04:00
parent d79724549c
commit 4d1e6ccbe4
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75

View File

@ -312,7 +312,7 @@ public class Main {
.desc("Do not decode sources.")
.build();
Option onlyMainClassesOption = Option.builder("onlymainclasses")
Option onlyMainClassesOption = Option.builder()
.longOpt("only-main-classes")
.desc("Only decompile the main dex classes (classes[0-9]*.dex) in the root.")
.build();
@ -454,6 +454,7 @@ public class Main {
DecodeOptions.addOption(noDbgOption);
DecodeOptions.addOption(keepResOption);
DecodeOptions.addOption(analysisOption);
DecodeOptions.addOption(onlyMainClassesOption);
DecodeOptions.addOption(apiLevelOption);
DecodeOptions.addOption(noAssetOption);
DecodeOptions.addOption(forceManOption);
@ -476,7 +477,6 @@ public class Main {
DecodeOptions.addOption(frameDirOption);
DecodeOptions.addOption(forceDecOption);
DecodeOptions.addOption(noSrcOption);
DecodeOptions.addOption(onlyMainClassesOption);
DecodeOptions.addOption(noResOption);
// add basic build options