parse

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

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)