RequiredArgumentOptionImpl Class
The default implementation of RequiredArgumentOption interface.
C#
public sealed class RequiredArgumentOptionImpl : AbstractOption, RequiredArgumentOption
- Inheritance
- Implements
Constructors
Required |
Initializes a new instance of the RequiredArgumentOptionImpl class. |
Properties
Methods
ToString() |
Gets the string representing this option, which is actually specified with the command line. (Inherited from Abstract |
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
The function returns the string representing this option, which is actually specified with the command line.
The specification of the option.
- schema
-
Option
Schema
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; }