doc(cli): improve plugins section formatting
This commit is contained in:
@@ -136,11 +136,11 @@ options:
|
||||
-h, --help - print this help
|
||||
|
||||
Plugin options (-P<name>=<value>):
|
||||
1) dex-input (Load .dex and .apk files)
|
||||
-Pdex-input.verify-checksum - Verify dex file checksum before load, values: [yes, no], default: yes
|
||||
2) java-convert (Convert .jar and .class files to dex)
|
||||
-Pjava-convert.mode - Convert mode, values: [dx, d8, both], default: both
|
||||
-Pjava-convert.d8-desugar - Use desugar in d8, values: [yes, no], default: no
|
||||
1) dex-input: Load .dex and .apk files
|
||||
- dex-input.verify-checksum - verify dex file checksum before load, values: [yes, no], default: yes
|
||||
2) java-convert: Convert .class, .jar and .aar files to dex
|
||||
- java-convert.mode - convert mode, values: [dx, d8, both], default: both
|
||||
- java-convert.d8-desugar - use desugar in d8, values: [yes, no], default: no
|
||||
|
||||
Examples:
|
||||
jadx -d out classes.dex
|
||||
|
||||
@@ -193,11 +193,11 @@ public class JCommanderWrapper<T> {
|
||||
return false;
|
||||
}
|
||||
JadxPluginInfo pluginInfo = plugin.getPluginInfo();
|
||||
out.append("\n ").append(k).append(") ");
|
||||
out.append(pluginInfo.getPluginId()).append(" (").append(pluginInfo.getDescription()).append(") ");
|
||||
out.append("\n ").append(k).append(") ");
|
||||
out.append(pluginInfo.getPluginId()).append(": ").append(pluginInfo.getDescription());
|
||||
for (OptionDescription desc : descs) {
|
||||
StringBuilder opt = new StringBuilder();
|
||||
opt.append(" -P").append(desc.name());
|
||||
opt.append(" - ").append(desc.name());
|
||||
addSpaces(opt, maxNamesLen - opt.length());
|
||||
opt.append("- ").append(desc.description());
|
||||
if (!desc.values().isEmpty()) {
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ public class DexInputOptions extends BaseOptionsParser {
|
||||
return Collections.singletonList(
|
||||
new JadxOptionDescription(
|
||||
VERIFY_CHECKSUM_OPT,
|
||||
"Verify dex file checksum before load",
|
||||
"verify dex file checksum before load",
|
||||
"yes",
|
||||
Arrays.asList("yes", "no")));
|
||||
}
|
||||
|
||||
+2
-2
@@ -30,12 +30,12 @@ public class JavaConvertOptions extends BaseOptionsParser {
|
||||
return Arrays.asList(
|
||||
new JadxOptionDescription(
|
||||
MODE_OPT,
|
||||
"Convert mode",
|
||||
"convert mode",
|
||||
"both",
|
||||
Arrays.asList("dx", "d8", "both")),
|
||||
new JadxOptionDescription(
|
||||
D8_DESUGAR_OPT,
|
||||
"Use desugar in d8",
|
||||
"use desugar in d8",
|
||||
"no",
|
||||
Arrays.asList("yes", "no")));
|
||||
}
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ public class JavaConvertPlugin implements JadxInputPlugin, JadxPluginOptions {
|
||||
return new JadxPluginInfo(
|
||||
PLUGIN_ID,
|
||||
"JavaConvert",
|
||||
"Convert .jar and .class files to dex",
|
||||
"Convert .class, .jar and .aar files to dex",
|
||||
"java-input");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user