runCommand

fun runCommand(args: List<String>, exitOnError: Boolean = true)(source)

Primary entry point to run any command registered via CommandFactory. First argument should be the command key and remaining arguments are passed to the created CLI.