mirror of
https://github.com/ReVanced/revanced-cli.git
synced 2026-01-17 16:33:58 +00:00
feat: Simplify option descriptions
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user