File tree 3 files changed +5
-4
lines changed
src/main/kotlin/app/revanced
3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ internal object MainCommand : Runnable {
67
67
@Option(names = [" -e" , " --exclude" ], description = [" Explicitly exclude patches" ])
68
68
var excludedPatches = arrayOf<String >()
69
69
70
+ @Option(names = [" --exclusive" ], description = [" Exclusively include patches" ])
71
+ var defaultExclude = false
72
+
70
73
@Option(names = [" -i" , " --include" ], description = [" Include patches" ])
71
74
var includedPatches = arrayOf<String >()
72
75
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ internal object Patcher {
16
16
// merge files like necessary integrations
17
17
patcher.mergeFiles()
18
18
// add patches, but filter incompatible or excluded patches
19
- patcher.addPatchesFiltered(excludePatches = args.excludedPatches.isNotEmpty() )
19
+ patcher.addPatchesFiltered()
20
20
// apply patches
21
21
patcher.applyPatchesVerbose()
22
22
Original file line number Diff line number Diff line change @@ -11,9 +11,7 @@ import app.revanced.patcher.extensions.PatchExtensions.patchName
11
11
import app.revanced.patcher.patch.Patch
12
12
import app.revanced.patcher.util.patch.implementation.JarPatchBundle
13
13
14
- fun Patcher.addPatchesFiltered (
15
- excludePatches : Boolean = false
16
- ) {
14
+ fun Patcher.addPatchesFiltered () {
17
15
val packageName = this .data.packageMetadata.packageName
18
16
val packageVersion = this .data.packageMetadata.packageVersion
19
17
You can’t perform that action at this time.
0 commit comments