@ -47,10 +47,14 @@ class DevCommand : CliktCommand("dev") {
|
|||||||
|
|
||||||
override val treatUnknownOptionsAsArgs = true
|
override val treatUnknownOptionsAsArgs = true
|
||||||
|
|
||||||
|
init {
|
||||||
|
echo(System.getProperty("os.name"))
|
||||||
|
}
|
||||||
|
|
||||||
val server by argument().help("Server Template")
|
val server by argument().help("Server Template")
|
||||||
val port by option("--port").long().default(
|
val port by option("--port").long().default(
|
||||||
if (System.getProperty("os.name").lowercase()
|
if (System.getProperty("os.name").lowercase()
|
||||||
.let { os -> listOf("mac", "nix", "sunos").any { os in it } }
|
.let { os -> listOf("mac", "nix", "sunos").any { it in os } }
|
||||||
) UnixSystem().uid else 2050
|
) UnixSystem().uid else 2050
|
||||||
).help("Port for Server")
|
).help("Port for Server")
|
||||||
val world by option("--world", "-w").help("User World")
|
val world by option("--world", "-w").help("User World")
|
||||||
|
|||||||
Reference in New Issue
Block a user