ParseArgsOptionDescriptor

sealed external interface ParseArgsOptionDescriptor(source)

Properties

Link copied to clipboard
abstract var default: Any?

The value to assign to the option if it does not appear in the arguments to be parsed. The value must match the type specified by the type property. If multiple is true, it must be an array. No default value is applied when the option does appear in the arguments to be parsed, even if the provided value is falsy.

Link copied to clipboard
abstract var multiple: Boolean?

Whether this option can be provided multiple times. If true, all values will be collected in an array. If false, values for the option are last-wins.

Link copied to clipboard
abstract var short: String?

A single character alias for the option.

Link copied to clipboard

Type of argument.