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.1.0+9df03b6173b5fc9d44dc39638758964dd7a0f4c7
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