feat: Show default CLI option values

This commit is contained in:
oSumAtrIX 2024-01-29 03:47:56 +01:00
parent 4dffd32c99
commit db0bfc3be5
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -13,12 +13,14 @@ internal object StartAPICommand : Runnable {
@CommandLine.Option(
names = ["-h", "--host"],
description = ["The host address to bind to."],
showDefaultValue = CommandLine.Help.Visibility.ALWAYS,
)
private var host: String = "0.0.0.0"
@CommandLine.Option(
names = ["-p", "--port"],
description = ["The port to listen on."],
showDefaultValue = CommandLine.Help.Visibility.ALWAYS,
)
private var port: Int = 8080