CommandLineArgument.IsRequired Property

Gets a value that indicates whether the argument is required.

Definition

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

Property Value

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

Remarks

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

See Also