ParseOptionsAttribute.IsPosix 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: 5.0.0+724ca9b7fa5edc075ec2ae65044e61b0d494fd1c
C#
public virtual bool IsPosix { get; set; }

Property Value

Boolean
true if the options follow POSIX conventions; otherwise, false.

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 true is equivalent to setting the Mode property to ParsingMode.LongShort, the CaseSensitive property to true, the ArgumentNameTransform property to NameTransform.DashCase, and the ValueDescriptionTransform property to NameTransform.DashCase.

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

Setting this property to false is equivalent to setting the Mode property to ParsingMode.Default, the CaseSensitive property to false, the ArgumentNameTransform property to NameTransform.None, and the ValueDescriptionTransform property to NameTransform.None.

See Also