Skip to content

--help doesn't include sub modules #47

@jeggy

Description

@jeggy
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

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions