PrintHelpMessage

class PrintHelpMessage(var context: Context?, val error: Boolean = false, val statusCode: Int = 0) : CliktError, ContextCliktError

An exception that indicates that the command's help should be printed.

Execution should be immediately halted.

Constructors

Link copied to clipboard
constructor(context: Context?, error: Boolean = false, statusCode: Int = 0)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open override var context: Context?

The context of the command that raised this error.

Link copied to clipboard
val error: Boolean = false

If true, the error message should be printed to stderr.

Link copied to clipboard
open val message: String?
Link copied to clipboard
val printError: Boolean = true

If true, the error message should be printed to stderr.

Link copied to clipboard
val statusCode: Int = 1

The value to use as the exit code for the process.