Skip to content

Commit

Permalink
feat: Simplify option descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Aug 14, 2024
1 parent 9b03963 commit 45c998b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions docs/1_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/app/revanced/cli/command/PatchCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 45c998b

Please sign in to comment.