RequiredArgumentOptionSpec Class
The specification part of RequiredArgumentOptionImpl.
public sealed class RequiredArgumentOptionSpec : AbstractSpec<RequiredArgumentOption>
- Inheritance
- Implements
Constructors
Required |
Initializes a new instance of the RequiredArgumentOptionSpec class. |
Properties
Argument |
Gets the argument name of the option. |
Name |
(Inherited from Abstract |
ShortName |
(Inherited from Abstract |
Description |
(Inherited from Abstract |
Methods
Visit |
Description copied from class: AbstractSpec
|
Visit |
Description copied from class: AbstractSpec
|
Get |
Description copied from class: AbstractSpec
|
Fire(T) |
Invokes the callback function. (Inherited from Abstract |
VisitLongOption(ParseKit, Builder, string, Queue<string>) |
Description copied from interface: Spec (Inherited from Abstract |
VisitShortOption(ParseKit, Builder, Queue<char>, Queue<string>) |
Description copied from interface: Spec (Inherited from Abstract |
GetHelpHeading() |
Description copied from interface: Spec (Inherited from Abstract |
Equals(object) | (Inherited from object) |
GetHashCode() | (Inherited from object) |
GetType() | (Inherited from object) |
MemberwiseClone() | (Inherited from object) |
ToString() | (Inherited from object) |
Constructors Detail
RequiredArgumentOptionSpec(string, char?, string, string, Action<RequiredArgumentOption>)
Initializes a new instance of the RequiredArgumentOptionSpec class.
public RequiredArgumentOptionSpec(string name, char? shortName, string argumentName, string description, Action<RequiredArgumentOption> action)
Parameters
- name
- string
The name.
- shortName
- char?
The short name.
- argumentName
- string
The name of the option argument.
- description
- string
The description.
- action
-
Action<Required
Argument >Option
The action to be invoked.
See Also
Properties Detail
ArgumentName
Gets the argument name of the option.
public string ArgumentName { get; }
Property Value
Methods Detail
VisitLongOption(ParseKit, Builder, string, Queue<string>)
Description copied from class: AbstractSpec
Description copied from interface: Spec
Visits the long option.
public override void VisitLongOption(ParseKit kit, Builder builder, string argument, Queue<string> queue)
Parameters
- kit
-
Parse
Kit
- builder
- Builder
- argument
- string
VisitShortOption(ParseKit, Builder, Queue<char>, Queue<string>)
Description copied from class: AbstractSpec
Description copied from interface: Spec
Visits the short option.
public override void VisitShortOption(ParseKit kit, Builder builder, Queue<char> shortNameQueue, Queue<string> queue)
Parameters
- kit
-
Parse
Kit
- builder
- Builder
GetHelpHeading()
Description copied from class: AbstractSpec
Description copied from interface: Spec
Gets the heading of the help message.
public override string GetHelpHeading()
Returns
Description copied from class: AbstractSpec
Description copied from interface: Spec
The heading of the help message.