Skip to content

Commit

Permalink
doc(cli): improve plugins section formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Jun 6, 2022
1 parent 93d3194 commit 20657e8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions jadx-cli/src/main/java/jadx/cli/JCommanderWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ private boolean appendPlugin(JadxPluginOptions plugin, StringBuilder out, int ma
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()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public List<OptionDescription> buildOptionsDescriptions() {
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")));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ public List<OptionDescription> buildOptionsDescriptions() {
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")));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public JadxPluginInfo getPluginInfo() {
return new JadxPluginInfo(
PLUGIN_ID,
"JavaConvert",
"Convert .jar and .class files to dex",
"Convert .class, .jar and .aar files to dex",
"java-input");
}

Expand Down

0 comments on commit 20657e8

Please sign in to comment.