OptionSchemaImpl Class
The default implementation of OptionSchema interface.
public sealed class OptionSchemaImpl : OptionSchema
- Inheritance
-
Option
Schema Impl
- Implements
Constructors
Option |
Initializes a new instance of the OptionSchemaImpl class. |
Fields
Empty |
The empty option schema. |
Methods
Add(string, char?, string, string, Action<Required |
Description copied from interface: OptionSchema
|
Add(string, char?, string, Action<Option>) |
Description copied from interface: OptionSchema
|
Add(string, char?, string, string) |
Description copied from interface: OptionSchema
|
Add(string, char?, string) |
Description copied from interface: OptionSchema
|
Get |
Description copied from interface: OptionSchema
|
Parse(string[]) |
Description copied from interface: OptionSchema
|
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.
public OptionSchemaImpl()
Fields Detail
Empty
The empty option schema.
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.
public OptionSchema Add(string name, char? shortName, string argumentName, string description, Action<RequiredArgumentOption> action)
Parameters
- name
- string
- shortName
- char?
- argumentName
- string
- description
- string
- action
-
Action<Required
Argument >Option
Returns
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.
public OptionSchema Add(string name, char? shortName, string description, Action<Option> action)
Parameters
- name
- string
- shortName
- char?
- description
- string
Returns
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.
public OptionSchema Add(string name, char? shortName, string argumentName, string description)
Parameters
- name
- string
- shortName
- char?
- argumentName
- string
- description
- string
Returns
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.
public OptionSchema Add(string name, char? shortName, string description)
Parameters
- name
- string
- shortName
- char?
- description
- string
Returns
Implements
GetHelpMessage()
Description copied from interface: OptionSchema
Gets the description of the command-line options.
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.
public Setting Parse(params string[] args)
Parameters
- args
- string[]