RequiredArgumentOptionSpec Class

The specification part of RequiredArgumentOptionImpl.

C#
public sealed class RequiredArgumentOptionSpec : AbstractSpec<RequiredArgumentOption>
Inheritance
RequiredArgumentOptionSpec
Implements

Constructors

Properties

ArgumentName

Gets the argument name of the option.

Name (Inherited from AbstractSpec<T>)
ShortName (Inherited from AbstractSpec<T>)
Description (Inherited from AbstractSpec<T>)

Methods

VisitLongOption(ParseKit, Builder, string, Queue<string>)

Description copied from class: AbstractSpec

Description copied from interface: Spec

Visits the long option.

VisitShortOption(ParseKit, Builder, Queue<char>, Queue<string>)

Description copied from class: AbstractSpec

Description copied from interface: Spec

Visits the short option.

GetHelpHeading()

Description copied from class: AbstractSpec

Description copied from interface: Spec

Gets the heading of the help message.

Fire(T)

Invokes the callback function.

(Inherited from AbstractSpec<T>)
VisitLongOption(ParseKit, Builder, string, Queue<string>)

Description copied from interface: Spec

Visits the long option.

(Inherited from AbstractSpec<T>)
VisitShortOption(ParseKit, Builder, Queue<char>, Queue<string>)

Description copied from interface: Spec

Visits the short option.

(Inherited from AbstractSpec<T>)
GetHelpHeading()

Description copied from interface: Spec

Gets the heading of the help message.

(Inherited from AbstractSpec<T>)
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.

C#
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<RequiredArgumentOption>

The action to be invoked.

See Also

Properties Detail

ArgumentName

Gets the argument name of the option.

C#
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.

C#
public override void VisitLongOption(ParseKit kit, Builder builder, string argument, Queue<string> queue)

Parameters

kit
ParseKit
builder
Builder
argument
string
queue
Queue<string>

VisitShortOption(ParseKit, Builder, Queue<char>, Queue<string>)

Description copied from class: AbstractSpec

Description copied from interface: Spec

Visits the short option.

C#
public override void VisitShortOption(ParseKit kit, Builder builder, Queue<char> shortNameQueue, Queue<string> queue)

Parameters

kit
ParseKit
builder
Builder
shortNameQueue
Queue<char>
queue
Queue<string>

GetHelpHeading()

Description copied from class: AbstractSpec

Description copied from interface: Spec

Gets the heading of the help message.

C#
public override string GetHelpHeading()

Returns

Description copied from class: AbstractSpec

Description copied from interface: Spec

The heading of the help message.