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.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
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