Mono.Options.OptionSet.GetOptionForName Method
Looks up the Mono.Options.Option registered to handle the option name option.

Syntax

[System.Obsolete("Use KeyedCollection.this[string]")]
protected Option GetOptionForName (string option)

See Also

OptionSet.Parse(string, OptionContext)

Parameters

option
A string containing the option name to lookup.

Returns

The Mono.Options.Option instance registered to handle the option name option. If there is no registered handler for option, then null is returned.

Exceptions

TypeReason
ArgumentNullException option is null.

Remarks

Subclasses can use this function to perform option lookup when overriding OptionSet.Parse(string, OptionContext).

Requirements

Namespace: Mono.Options
Assembly: Mono.Options (in Mono.Options.dll)
Assembly Versions: 0.2.0.0, 0.2.1.0, 0.2.2.0, 0.2.3.0