OptionSpec Class
The specification part of OptionImpl.
public sealed class OptionSpec : AbstractSpec<Option>
- Inheritance
- Implements
Constructors
Option |
Initializes a new instance of the OptionSpec class. |
Properties
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
OptionSpec(string, char?, string, Action<Option>)
Initializes a new instance of the OptionSpec class.
public OptionSpec(string name, char? shortName, string description, Action<Option> action)
Parameters
- name
- string
The name.
- shortName
- char?
The short name.
- description
- string
The description.
See Also
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 arguemnt, Queue<string> queue)
Parameters
- kit
-
Parse
Kit
- builder
- Builder
- arguemnt
- 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.