feat: Simplify option descriptions

This commit is contained in:
oSumAtrIX
2024-08-14 15:33:17 +02:00
parent 9b03963687
commit 45c998b335
4 changed files with 11 additions and 11 deletions

View File

@@ -12,14 +12,14 @@ import java.util.logging.Logger
name = "list-versions",
description = [
"List the most common compatible versions of apps that are compatible " +
"with the patches in the supplied files containing patches.",
"with the patches from RVP files.",
],
)
internal class ListCompatibleVersions : Runnable {
private val logger = Logger.getLogger(this::class.java.name)
@CommandLine.Parameters(
description = ["One or more paths to files containing patches."],
description = ["Paths to RVP files."],
arity = "1..*",
)
private lateinit var patchesFiles: Set<File>

View File

@@ -11,13 +11,13 @@ import app.revanced.patcher.patch.Option as PatchOption
@Command(
name = "list-patches",
description = ["List patches from supplied files containing patches."],
description = ["List patches from supplied RVP files."],
)
internal object ListPatchesCommand : Runnable {
private val logger = Logger.getLogger(this::class.java.name)
@Parameters(
description = ["One or more paths to files containing patches."],
description = ["Paths to RVP files."],
arity = "1..*",
)
private lateinit var patchesFiles: Set<File>
@@ -59,7 +59,7 @@ internal object ListPatchesCommand : Runnable {
@Option(
names = ["-i", "--index"],
description = ["List the index of each patch in relation to the supplied files containing patches."],
description = ["List the index of each patch in relation to the supplied RVP files."],
showDefaultValue = ALWAYS,
)
private var withIndex: Boolean = true

View File

@@ -50,7 +50,7 @@ internal object PatchCommand : Runnable {
@CommandLine.Option(
names = ["--ei"],
description = ["Index of the patch in the combined list of all supplied files containing patches."],
description = ["Index of the patch in the combined list of the supplied RVP files."],
required = true,
)
internal var index: Int? = null
@@ -82,7 +82,7 @@ internal object PatchCommand : Runnable {
@CommandLine.Option(
names = ["--di"],
description = ["Index of the patch in the combined list of all supplied files containing patches."],
description = ["Index of the patch in the combined list of the supplied RVP files."],
required = true,
)
internal var index: Int? = null
@@ -200,7 +200,7 @@ internal object PatchCommand : Runnable {
@CommandLine.Option(
names = ["-p", "--patches"],
description = ["One or more path to files containing patches."],
description = ["One or more path to RVP files."],
required = true,
)
@Suppress("unused")