mirror of
https://github.com/revanced/revanced-cli.git
synced 2025-05-20 16:27:14 +02:00
feat: rename debugging
option to experimental
This commit is contained in:
parent
1a3db77c21
commit
98bd6f3f4b
@ -47,8 +47,8 @@ internal object MainCommand : Runnable {
|
|||||||
@Option(names = ["-r", "--resource-patcher"], description = ["Disable patching resources"])
|
@Option(names = ["-r", "--resource-patcher"], description = ["Disable patching resources"])
|
||||||
var disableResourcePatching: Boolean = false
|
var disableResourcePatching: Boolean = false
|
||||||
|
|
||||||
@Option(names = ["--debugging"], description = ["Disable patch version compatibility"])
|
@Option(names = ["-e", "--experimental"], description = ["Disable patch version compatibility patch"])
|
||||||
var debugging: Boolean = false
|
var experimental: Boolean = false
|
||||||
|
|
||||||
@Option(names = ["-m", "--merge"], description = ["One or more dex file containers to merge"])
|
@Option(names = ["-m", "--merge"], description = ["One or more dex file containers to merge"])
|
||||||
var mergeFiles = listOf<File>()
|
var mergeFiles = listOf<File>()
|
||||||
|
@ -43,7 +43,7 @@ fun Patcher.addPatchesFiltered(
|
|||||||
return@patch
|
return@patch
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(args.debugging || compatiblePackages.any { it.versions.isEmpty() || it.versions.any { version -> version == packageVersion }})) {
|
if (!(args.experimental || compatiblePackages.any { it.versions.isEmpty() || it.versions.any { version -> version == packageVersion }})) {
|
||||||
println("$prefix: The package version is $packageVersion and is incompatible.")
|
println("$prefix: The package version is $packageVersion and is incompatible.")
|
||||||
return@patch
|
return@patch
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user