-
Notifications
You must be signed in to change notification settings - Fork 129
Open
Description
class HelloWorld : CliktCommand() {
init {
context { readArgumentFile = null }
}
val foo by option("--foo", "-f").required()
override fun run() {
println("Hello, $foo")
}
}
HelloWorld().context { readArgumentFile = null }.main(args)None of the context overrides works.
./github.main.kts --foo @types/node
warning: argfile not found: /Users/foobar/development/github.com/project/types/node
Usage: hello-world [<options>]
Error: option --foo requires a value
Metadata
Metadata
Assignees
Labels
No labels