Arg <T>
Hierarchy
Index
Properties
optionaldefault
optionaldeprecated
Whether the object is deprecated or not. Will display a tag in the help menu. Defaults to false
.
description
A description of what the object is and does. Supports basic markdown for bold, italics, and underline.
optionalformat
An optional function to format the value after parsing. Must return the same type.
optionalhidden
Whether the object should be hidden from the help menu or not. Will still match on the command line. Defaults to false
.
type
Expected type of the provided value. When a value is captured from the command line, it will be type casted.
optionalvalidate
An optional function to validate the provided value.
The default value if option not provided on the command line. The value's type is dependent on the
type
andmultiple
settings. Furthermore, this value defaults to the following if not defined.0
) when type isnumber
.''
) when type isstring
.false
when type isboolean
.