Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
feat: remove option --with-descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Jan 1, 2023
1 parent 31e4a41 commit 07a423b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/main/kotlin/app/revanced/cli/command/MainCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ internal object MainCommand : Runnable {

@Option(names = ["--with-packages"], description = ["List patches with compatible packages"])
var withPackages: Boolean = false

@Option(names = ["--with-descriptions"], description = ["List patches with their descriptions"])
var withDescriptions: Boolean = true
}

class PatchingArgs {
Expand Down Expand Up @@ -228,14 +225,15 @@ internal object MainCommand : Runnable {
append(packageName)
append("\t")
}

// Add patch name
val patchName = patch.patchName.padStart(25)
append(patchName)

// Add description if flag is set.
if (args.patchArgs?.listingArgs?.withDescriptions == true) {
append("\t")
append(patch.description)
}
append("\t")
append(patch.description)

// Add compatible versions, if flag is set
if (args.patchArgs?.listingArgs?.withVersions == true) {
val compatibleVersions = compatiblePackage.versions.joinToString(separator = ", ")
Expand Down

0 comments on commit 07a423b

Please sign in to comment.