Click or drag to resize

CommandLineArgumentIsSwitch Property

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

Namespace:  Ookii.CommandLine
Assembly:  Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntax
public bool IsSwitch { get; }

Property Value

Type: 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 either Boolean or a nullable Boolean.

See Also