CommandLineArgumentIsRequired Property

Gets a value that indicates whether the argument is required.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public bool IsRequired { get; }

Property Value

Boolean
if the argument's value must be specified on the command line; if the argument may be omitted.

Remarks

An argument is required if its CommandLineArgumentAttributeIsRequired, property is , or if it was defined by an property with the required keyword available in C# 11 and later.

See Also