CommandLineArgumentDefaultValue Property

Gets the default value for an argument.

Definition

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

Property Value

Object
The default value of the argument.

Remarks

The default value is set by the CommandLineArgumentAttributeDefaultValue property, or when the GeneratedParserAttribute is used it can also be specified using a property initializer.

This value is only used if the IsRequired property is .

See Also