mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-11 13:56:17 +00:00
feat: Show default CLI option values
This commit is contained in:
@@ -13,12 +13,14 @@ internal object StartAPICommand : Runnable {
|
|||||||
@CommandLine.Option(
|
@CommandLine.Option(
|
||||||
names = ["-h", "--host"],
|
names = ["-h", "--host"],
|
||||||
description = ["The host address to bind to."],
|
description = ["The host address to bind to."],
|
||||||
|
showDefaultValue = CommandLine.Help.Visibility.ALWAYS,
|
||||||
)
|
)
|
||||||
private var host: String = "0.0.0.0"
|
private var host: String = "0.0.0.0"
|
||||||
|
|
||||||
@CommandLine.Option(
|
@CommandLine.Option(
|
||||||
names = ["-p", "--port"],
|
names = ["-p", "--port"],
|
||||||
description = ["The port to listen on."],
|
description = ["The port to listen on."],
|
||||||
|
showDefaultValue = CommandLine.Help.Visibility.ALWAYS,
|
||||||
)
|
)
|
||||||
private var port: Int = 8080
|
private var port: Int = 8080
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user