CommandLineArgumentIsSwitch Property

Gets a value indicating whether this argument is a switch argument.

Definition

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

Property Value

Boolean
if the argument is a switch argument; otherwise, .

Remarks

A switch argument is an argument that doesn't need a value; instead, its value is or depending on whether the argument is present on the command line.

A argument is a switch argument when it is not positional, and its ElementType is a Boolean.

See Also