RequiredArgumentOptionImpl Class

The default implementation of RequiredArgumentOption interface.

C#
public sealed class RequiredArgumentOptionImpl : AbstractOption, RequiredArgumentOption
Inheritance
RequiredArgumentOptionImpl
Implements

Constructors

Properties

Methods

ToString()

Gets the string representing this option, which is actually specified with the command line.

(Inherited from AbstractOption)
Equals(object) (Inherited from object)
GetHashCode() (Inherited from object)
GetType() (Inherited from object)
MemberwiseClone() (Inherited from object)

Constructors Detail

RequiredArgumentOptionImpl(Func<string>, RequiredArgumentOptionSpec, OptionSchema, IEnumerable<string>)

Initializes a new instance of the RequiredArgumentOptionImpl class.

C#
public RequiredArgumentOptionImpl(Func<string> supplier, RequiredArgumentOptionSpec spec, OptionSchema schema, IEnumerable<string> values)

Parameters

supplier
Func<string>

The function returns the string representing this option, which is actually specified with the command line.

spec
RequiredArgumentOptionSpec

The specification of the option.

schema
OptionSchema

The schema of the option.

values
IEnumerable<string>

The argument values of the option.

See Also

Properties Detail

Name

C#
public string Name { get; }

Property Value

Implements

ShortName

C#
public char? ShortName { get; }

Property Value

Implements

ArgumentName

C#
public string ArgumentName { get; }

Property Value

Implements

Description

C#
public string Description { get; }

Property Value

Implements

ArgumentValues

C#
public IEnumerable<string> ArgumentValues { get; }

Property Value

Implements

ArgumentValue

C#
public string ArgumentValue { get; }

Property Value

Implements

Schema

C#
public OptionSchema Schema { get; }

Property Value

Implements