-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
class OtherArks: Arkenv() {
val customConfig: String? by argument("--custom")
}
class Arks: Arkenv("My App") {
val other = module(OtherArks())
val port: Int by argument("--port") {
defaultValue = { 8080 }
}
}
fun main(args: Array<String>) {
val arks = Arks().parse(args)
if (arks.help) {
println(arks.toString())
}
}outputs:
My App:
[-h, --HELP]
help true
[--ARKENV_APPLICATION_NAME]
programName My App
[--PORT]
port 8080
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working