未验证 提交 20657e8b 编写于 作者: S Skylot

doc(cli): improve plugins section formatting

上级 93d3194e
...@@ -136,11 +136,11 @@ options: ...@@ -136,11 +136,11 @@ options:
-h, --help - print this help -h, --help - print this help
Plugin options (-P<name>=<value>): Plugin options (-P<name>=<value>):
1) dex-input (Load .dex and .apk files) 1) dex-input: Load .dex and .apk files
-Pdex-input.verify-checksum - Verify dex file checksum before load, values: [yes, no], default: yes - dex-input.verify-checksum - verify dex file checksum before load, values: [yes, no], default: yes
2) java-convert (Convert .jar and .class files to dex) 2) java-convert: Convert .class, .jar and .aar files to dex
-Pjava-convert.mode - Convert mode, values: [dx, d8, both], default: both - java-convert.mode - convert mode, values: [dx, d8, both], default: both
-Pjava-convert.d8-desugar - Use desugar in d8, values: [yes, no], default: no - java-convert.d8-desugar - use desugar in d8, values: [yes, no], default: no
Examples: Examples:
jadx -d out classes.dex jadx -d out classes.dex
......
...@@ -193,11 +193,11 @@ public class JCommanderWrapper<T> { ...@@ -193,11 +193,11 @@ public class JCommanderWrapper<T> {
return false; return false;
} }
JadxPluginInfo pluginInfo = plugin.getPluginInfo(); JadxPluginInfo pluginInfo = plugin.getPluginInfo();
out.append("\n ").append(k).append(") "); out.append("\n ").append(k).append(") ");
out.append(pluginInfo.getPluginId()).append(" (").append(pluginInfo.getDescription()).append(") "); out.append(pluginInfo.getPluginId()).append(": ").append(pluginInfo.getDescription());
for (OptionDescription desc : descs) { for (OptionDescription desc : descs) {
StringBuilder opt = new StringBuilder(); StringBuilder opt = new StringBuilder();
opt.append(" -P").append(desc.name()); opt.append(" - ").append(desc.name());
addSpaces(opt, maxNamesLen - opt.length()); addSpaces(opt, maxNamesLen - opt.length());
opt.append("- ").append(desc.description()); opt.append("- ").append(desc.description());
if (!desc.values().isEmpty()) { if (!desc.values().isEmpty()) {
......
...@@ -23,7 +23,7 @@ public class DexInputOptions extends BaseOptionsParser { ...@@ -23,7 +23,7 @@ public class DexInputOptions extends BaseOptionsParser {
return Collections.singletonList( return Collections.singletonList(
new JadxOptionDescription( new JadxOptionDescription(
VERIFY_CHECKSUM_OPT, VERIFY_CHECKSUM_OPT,
"Verify dex file checksum before load", "verify dex file checksum before load",
"yes", "yes",
Arrays.asList("yes", "no"))); Arrays.asList("yes", "no")));
} }
......
...@@ -30,12 +30,12 @@ public class JavaConvertOptions extends BaseOptionsParser { ...@@ -30,12 +30,12 @@ public class JavaConvertOptions extends BaseOptionsParser {
return Arrays.asList( return Arrays.asList(
new JadxOptionDescription( new JadxOptionDescription(
MODE_OPT, MODE_OPT,
"Convert mode", "convert mode",
"both", "both",
Arrays.asList("dx", "d8", "both")), Arrays.asList("dx", "d8", "both")),
new JadxOptionDescription( new JadxOptionDescription(
D8_DESUGAR_OPT, D8_DESUGAR_OPT,
"Use desugar in d8", "use desugar in d8",
"no", "no",
Arrays.asList("yes", "no"))); Arrays.asList("yes", "no")));
} }
......
...@@ -25,7 +25,7 @@ public class JavaConvertPlugin implements JadxInputPlugin, JadxPluginOptions { ...@@ -25,7 +25,7 @@ public class JavaConvertPlugin implements JadxInputPlugin, JadxPluginOptions {
return new JadxPluginInfo( return new JadxPluginInfo(
PLUGIN_ID, PLUGIN_ID,
"JavaConvert", "JavaConvert",
"Convert .jar and .class files to dex", "Convert .class, .jar and .aar files to dex",
"java-input"); "java-input");
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册