IncorrectOptionValueCount

class IncorrectOptionValueCount(minValues: Int, paramName: String) : UsageError

An option was supplied but the number of values supplied to the option was incorrect.

Constructors

Link copied to clipboard
constructor(minValues: Int, paramName: String)
constructor(option: Option, paramName: String)

Properties

Link copied to clipboard
expect 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
expect open val message: String?
Link copied to clipboard

The name of the parameter that caused the error.

Link copied to clipboard

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

Link copied to clipboard

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

Functions

Link copied to clipboard
open override fun formatMessage(localization: Localization, formatter: ParameterFormatter): String