ParseOptionsAttributeIsPosix Property

Gets or sets a value that indicates whether the options follow POSIX conventions.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public virtual bool IsPosix { get; set; }

Property Value

Boolean
if the options follow POSIX conventions; otherwise, .

Remarks

This property is provided as a convenient way to set a number of related properties that together indicate the parser is using POSIX conventions. POSIX conventions in this case means that parsing uses long/short mode, argument names are case sensitive, and argument names and value descriptions use dash-case (e.g. "argument-name").

Setting this property to is equivalent to setting the Mode property to ParsingModeLongShort, the CaseSensitive property to , the ArgumentNameTransform property to NameTransformDashCase, and the ValueDescriptionTransform property to NameTransformDashCase.

This property will only return if the above properties are the indicated values. It will return for any other combination of values, not just the ones indicated below.

Setting this property to is equivalent to setting the Mode property to ParsingModeDefault, the CaseSensitive property to , the ArgumentNameTransform property to NameTransformNone, and the ValueDescriptionTransform property to NameTransformNone.

See Also