printError

fun printError(args: Arguments, term: Terminal? = null)(source)

Prints error messages followed by basic usage information.

This method is typically called when argument parsing fails. It outputs any accumulated error messages, followed by the basic usage line and options summary to help users understand the correct syntax.

Parameters

args

The Arguments instance containing error state and configuration

term

The Terminal instance to use for output (optional)