ParseOptionsAttributeCaseSensitive Property

Gets or sets a value that indicates whether argument names are treated as case sensitive.

Definition

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

Property Value

Boolean
to indicate that argument names must match case exactly when specified, or to indicate the case does not need to match. The default value is

Remarks

When , the CommandLineParser will use StringComparisonOrdinal for command line argument comparisons; otherwise, it will use StringComparisonInvariantCulture. Ordinal comparisons are not used for case-sensitive names so that lower and upper case arguments sort together in the usage help.

To use a different StringComparison value than the two mentioned here, use the ParseOptionsArgumentNameComparison property.

This value can be overridden by the ParseOptionsArgumentNameComparison property.

See Also