Skip to content

Commit

Permalink
fix: show actual version in CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Sculas committed Jun 22, 2022
1 parent 4cc2f52 commit 1dcdbc9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/kotlin/app/revanced/cli/command/MainCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,16 @@ import picocli.CommandLine.*
import java.io.File
import java.nio.file.Files

private class CLIVersionProvider : IVersionProvider {
override fun getVersion() = arrayOf(
MainCommand::class.java.`package`.implementationVersion ?: "unknown"
)
}

@Command(
name = "ReVanced-CLI", version = ["1.0.0"], mixinStandardHelpOptions = true
name = "ReVanced-CLI",
mixinStandardHelpOptions = true,
versionProvider = CLIVersionProvider::class
)
internal object MainCommand : Runnable {
@ArgGroup(exclusive = false, multiplicity = "1")
Expand Down

0 comments on commit 1dcdbc9

Please sign in to comment.