ICommandOption

Represents a command option.

Represents a command option.

Properties

DefaultValue : DefaultValueAttribute

Gets the default value of the parameter, if specified.

Description : string

Gets the description of the parameter.

IsFlag : bool

Gets a value indicating whether the parameter is a flag.

IsHidden : bool

Gets a value indicating whether the parameter is hidden.

IsRequired : bool

Gets a value indicating whether the parameter is required.

LongNames : IReadOnlyList<string>

Gets the long names of the option.

ShortNames : IReadOnlyList<string>

Gets the short names of the option.

ValueIsOptional : bool

Gets a value indicating whether the option value is optional.

ValueName : string

Gets the value name of the option, if applicable.