parse

fun <T> CoreChainedCliktCommand<T>.parse(argv: Array<String>, initial: T): T
fun <T> CoreChainedCliktCommand<T>.parse(argv: List<String>, initial: T): T

Parse the command line and throw an exception if parsing fails.

You should use main instead unless you want to handle output yourself.