diff --git a/docs/1_usage.md b/docs/1_usage.md index 1e5b2de5..2ca98228 100644 --- a/docs/1_usage.md +++ b/docs/1_usage.md @@ -24,7 +24,7 @@ To patch an app using the default list of patches, use the `patch` command: java -jar revanced-cli.jar patch -p patches.rvp input.apk ``` -You can also use multiple files containing patches: +You can also use multiple RVP files: ```bash java -jar revanced-cli.jar patch -p patches.rvp -b another-patches.rvp input.apk @@ -91,13 +91,13 @@ For example, to set the options for the patch with the name `Patch name` with the key `key1` and `key2` to `value1` and `value2` respectively, use the following command: ```bash -java -jar revanced-cli.jar patch -b patches.rvp -e "Patch name" -Okey1=value1 -Okey2=value2 input.apk +java -jar revanced-cli.jar patch -p patches.rvp -e "Patch name" -Okey1=value1 -Okey2=value2 input.apk ``` If you want to set the option value to `null`, you can omit the value: ```bash -java -jar revanced-cli.jar patch -b revanced-patches.rvp -i "Patch name" -Okey1 input.apk +java -jar revanced-cli.jar patch -p patches.rvp -i "Patch name" -Okey1 input.apk ``` > [!WARNING] diff --git a/src/main/kotlin/app/revanced/cli/command/ListCompatibleVersions.kt b/src/main/kotlin/app/revanced/cli/command/ListCompatibleVersions.kt index a72a0cd4..aed66e9e 100644 --- a/src/main/kotlin/app/revanced/cli/command/ListCompatibleVersions.kt +++ b/src/main/kotlin/app/revanced/cli/command/ListCompatibleVersions.kt @@ -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 diff --git a/src/main/kotlin/app/revanced/cli/command/ListPatchesCommand.kt b/src/main/kotlin/app/revanced/cli/command/ListPatchesCommand.kt index 8dac2adf..d82185a4 100644 --- a/src/main/kotlin/app/revanced/cli/command/ListPatchesCommand.kt +++ b/src/main/kotlin/app/revanced/cli/command/ListPatchesCommand.kt @@ -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 @@ -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 diff --git a/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt b/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt index b441f3a7..a179fc91 100644 --- a/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt +++ b/src/main/kotlin/app/revanced/cli/command/PatchCommand.kt @@ -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")