Skip to content

Commit 1bb0d13

Browse files
committed
fix: Make CLI ArgGroup non-exclusive to be able to disable and enable patches at the same time
1 parent 18e56e6 commit 1bb0d13

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/kotlin/app/revanced/cli/command/PatchCommand.kt

+3-4
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ internal object PatchCommand : Runnable {
2929
@Spec
3030
private lateinit var spec: CommandSpec
3131

32-
@ArgGroup(multiplicity = "0..*")
32+
@ArgGroup(exclusive = false, multiplicity = "0..*")
3333
private var selection = mutableSetOf<Selection>()
3434

3535
internal class Selection {
36-
@ArgGroup(exclusive = false, multiplicity = "1")
36+
@ArgGroup(exclusive = false)
3737
internal var enabled: EnableSelection? = null
3838

3939
internal class EnableSelection {
@@ -65,7 +65,7 @@ internal object PatchCommand : Runnable {
6565
internal var options = mutableMapOf<String, Any?>()
6666
}
6767

68-
@ArgGroup(exclusive = false, multiplicity = "1")
68+
@ArgGroup(exclusive = false)
6969
internal var disable: DisableSelection? = null
7070

7171
internal class DisableSelection {
@@ -291,7 +291,6 @@ internal object PatchCommand : Runnable {
291291
patcherTemporaryFilesPath,
292292
aaptBinaryPath?.path,
293293
patcherTemporaryFilesPath.absolutePath,
294-
true,
295294
),
296295
).use { patcher ->
297296
val packageName = patcher.context.packageMetadata.packageName

0 commit comments

Comments
 (0)