style: normalize command descs and redundancy (#3188)

This commit is contained in:
Igor Eisberg
2023-07-21 13:08:30 +03:00
committed by GitHub
parent d4ec44de41
commit 79b2173b85
5 changed files with 19 additions and 20 deletions

View File

@ -307,12 +307,12 @@ public class Main {
// create options
Option versionOption = Option.builder("version")
.longOpt("version")
.desc("prints the version then exits")
.desc("Print the version.")
.build();
Option advanceOption = Option.builder("advance")
.longOpt("advanced")
.desc("prints advance information.")
.desc("Print advanced information.")
.build();
Option noSrcOption = Option.builder("s")
@ -347,7 +347,7 @@ public class Main {
Option analysisOption = Option.builder("m")
.longOpt("match-original")
.desc("Keeps files to closest to original as possible. Prevents rebuild.")
.desc("Keep files to closest to original as possible (prevents rebuild).")
.build();
Option apiLevelOption = Option.builder("api")
@ -359,17 +359,17 @@ public class Main {
Option debugBuiOption = Option.builder("d")
.longOpt("debug")
.desc("Sets android:debuggable to \"true\" in the APK's compiled manifest")
.desc("Set android:debuggable to \"true\" in the APK's compiled manifest.")
.build();
Option netSecConfOption = Option.builder("n")
.longOpt("net-sec-conf")
.desc("Adds a generic Network Security Configuration file in the output APK")
.build();
.longOpt("net-sec-conf")
.desc("Add a generic Network Security Configuration file in the output APK")
.build();
Option noDbgOption = Option.builder("b")
.longOpt("no-debug-info")
.desc("don't write out debug info (.local, .param, .line, etc.)")
.desc("Do not write out debug info (.local, .param, .line, etc.)")
.build();
Option forceDecOption = Option.builder("f")
@ -379,21 +379,21 @@ public class Main {
Option frameTagOption = Option.builder("t")
.longOpt("frame-tag")
.desc("Uses framework files tagged by <tag>.")
.desc("Use framework files tagged by <tag>.")
.hasArg(true)
.argName("tag")
.build();
Option frameDirOption = Option.builder("p")
.longOpt("frame-path")
.desc("Uses framework files located in <dir>.")
.desc("Use framework files located in <dir>.")
.hasArg(true)
.argName("dir")
.build();
Option frameIfDirOption = Option.builder("p")
.longOpt("frame-path")
.desc("Stores framework files into <dir>.")
.desc("Store framework files into <dir>.")
.hasArg(true)
.argName("dir")
.build();
@ -415,17 +415,17 @@ public class Main {
.longOpt("aapt")
.hasArg(true)
.argName("loc")
.desc("Loads aapt from specified location.")
.desc("Load aapt from specified location.")
.build();
Option aapt2Option = Option.builder()
.longOpt("use-aapt2")
.desc("Upgrades apktool to use experimental aapt2 binary.")
.desc("Use aapt2 binary instead of aapt1 during the build step.")
.build();
Option originalOption = Option.builder("c")
.longOpt("copy-original")
.desc("Copies original AndroidManifest.xml and META-INF. See project page for more info.")
.desc("Copy original AndroidManifest.xml and META-INF. See project page for more info.")
.build();
Option noCrunchOption = Option.builder("nc")
@ -442,14 +442,14 @@ public class Main {
Option outputBuiOption = Option.builder("o")
.longOpt("output")
.desc("The name of apk that gets written. Default is dist/name.apk")
.desc("The name of apk that gets written. (default: dist/name.apk)")
.hasArg(true)
.argName("dir")
.build();
Option outputDecOption = Option.builder("o")
.longOpt("output")
.desc("The name of folder that gets written. Default is apk.out")
.desc("The name of folder that gets written. (default: apk.out)")
.hasArg(true)
.argName("dir")
.build();