clikt / com.github.ajalt.clikt.core / CliktCommand / parse

parse

fun parse(argv: List<String>, parentContext: Context? = null): Unit

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

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

fun parse(argv: Array<String>, parentContext: Context? = null): Unit