feat: Make `--out´ option optional

This commit is contained in:
oSumAtrIX
2023-11-26 04:44:00 +01:00
parent 5e63e0a276
commit 3765957043
3 changed files with 33 additions and 16 deletions

View File

@@ -18,7 +18,9 @@ private object CLIVersionProvider : IVersionProvider {
MainCommand::class.java.getResourceAsStream(
"/app/revanced/cli/version.properties"
)?.use { stream ->
Properties().apply { load(stream) }.let {
Properties().apply {
load(stream)
}.let {
"ReVanced CLI v${it.getProperty("version")}"
}
} ?: "ReVanced CLI")