OptionSchemaImpl Class

The default implementation of OptionSchema interface.

C#
public sealed class OptionSchemaImpl : OptionSchema
Inheritance
OptionSchemaImpl
Implements

Constructors

OptionSchemaImpl()

Initializes a new instance of the OptionSchemaImpl class.

Fields

Empty

The empty option schema.

Methods

Add(string, char?, string, string, Action<RequiredArgumentOption>)

Description copied from interface: OptionSchema

Gets a new OptionSchema object with adding an option that requires an option argument and has the specified short name, the specified Action, the specified argument name, and the specified description.

Add(string, char?, string, Action<Option>)

Description copied from interface: OptionSchema

Gets a new OptionSchema object with adding an option that has no argument, the specified short name, the specified Action, and the specified description.

Add(string, char?, string, string)

Description copied from interface: OptionSchema

Gets a new OptionSchema object with adding an option that requires an option argument and has the specified short name, the specified argument name, and the specified description.

Add(string, char?, string)

Description copied from interface: OptionSchema

Gets a new OptionSchema object with adding an option that has no argument, the specified short name, and the specified description.

GetHelpMessage()

Description copied from interface: OptionSchema

Gets the description of the command-line options.

Parse(string[])

Description copied from interface: OptionSchema

Gets a new Setting object associated with this OptionSchema, which is the result of parsing the specified command-line options.

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

Constructors Detail

OptionSchemaImpl()

Initializes a new instance of the OptionSchemaImpl class.

C#
public OptionSchemaImpl()

Fields Detail

Empty

The empty option schema.

C#
public static readonly OptionSchema Empty

Field Value

Methods Detail

Add(string, char?, string, string, Action<RequiredArgumentOption>)

Description copied from interface: OptionSchema

Gets a new OptionSchema object with adding an option that requires an option argument and has the specified short name, the specified Action, the specified argument name, and the specified description.

C#
public OptionSchema Add(string name, char? shortName, string argumentName, string description, Action<RequiredArgumentOption> action)

Parameters

name
string
shortName
char?
argumentName
string
description
string

Returns

Description copied from interface: OptionSchema

The new OptionSchema object.

Implements

Add(string, char?, string, Action<Option>)

Description copied from interface: OptionSchema

Gets a new OptionSchema object with adding an option that has no argument, the specified short name, the specified Action, and the specified description.

C#
public OptionSchema Add(string name, char? shortName, string description, Action<Option> action)

Parameters

name
string
shortName
char?
description
string
action
Action<Option>

Returns

Description copied from interface: OptionSchema

The new OptionSchema object.

Implements

Add(string, char?, string, string)

Description copied from interface: OptionSchema

Gets a new OptionSchema object with adding an option that requires an option argument and has the specified short name, the specified argument name, and the specified description.

C#
public OptionSchema Add(string name, char? shortName, string argumentName, string description)

Parameters

name
string
shortName
char?
argumentName
string
description
string

Returns

Description copied from interface: OptionSchema

The new OptionSchema object.

Implements

Add(string, char?, string)

Description copied from interface: OptionSchema

Gets a new OptionSchema object with adding an option that has no argument, the specified short name, and the specified description.

C#
public OptionSchema Add(string name, char? shortName, string description)

Parameters

name
string
shortName
char?
description
string

Returns

Description copied from interface: OptionSchema

The new OptionSchema object.

Implements

GetHelpMessage()

Description copied from interface: OptionSchema

Gets the description of the command-line options.

C#
public IEnumerable<string> GetHelpMessage()

Returns

Description copied from interface: OptionSchema

The description of this Options.

Implements

Parse(string[])

Description copied from interface: OptionSchema

Gets a new Setting object associated with this OptionSchema, which is the result of parsing the specified command-line options.

C#
public Setting Parse(params string[] args)

Parameters

args
string[]

Returns

Description copied from interface: OptionSchema

The new Setting object.

Implements