Skip to content

--help doesn't include sub modules #47

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions