Mono.Options.OptionSet: Method Members

The methods of Mono.Options.OptionSet are listed below. For a list of all members, see the OptionSet Members list.

See Also: Inherited members from System.Collections.ObjectModel.KeyedCollection<System.String,Mono.Options.Option>

Public Methods

Add(ArgumentSource) : OptionSet
Registers source so that it may be consulted during argument processing within OptionSet.Parse(IEnumerable<string>).
Add(Option) : OptionSet
Registers option so that any options matching Option.GetNames will be treated specially by OptionSet.Parse(IEnumerable<string>).
Add(string) : OptionSet
Declare a header to be printed during OptionSet.WriteOptionDescriptions(System.IO.TextWriter).
Add(string, OptionAction<string, string>) : OptionSet
Registers each alias within prototype so that any options matching the aliases in prototype will be handled by action during any subsequent OptionSet.Parse(IEnumerable<string>) calls.
Add(string, Action<string>) : OptionSet
Registers each alias within prototype so that any options matching the aliases in prototype will be handled by action during any subsequent OptionSet.Parse(IEnumerable<string>) calls.
Add(string, string, OptionAction<string, string>) : OptionSet
Registers each alias within prototype so that any options matching the aliases in prototype will be handled by action during any subsequent OptionSet.Parse(IEnumerable<string>) calls.
Add(string, string, Action<string>) : OptionSet
Registers each alias within prototype so that any options matching the aliases in prototype will be handled by action during any subsequent OptionSet.Parse(IEnumerable<string>) calls.
Add(string, string, OptionAction<string, string>, bool) : OptionSet
Registers each alias within prototype so that any options matching the aliases in prototype will be handled by action during any subsequent OptionSet.Parse(IEnumerable<string>) calls.
Add(string, string, Action<string>, bool) : OptionSet
Registers each alias within prototype so that any options matching the aliases in prototype will be handled by action during any subsequent OptionSet.Parse(IEnumerable<string>) calls.
Add<T>(string, Action<T>) : OptionSet
Registers each alias within prototype so that any options matching the aliases in prototype will be handled by action during any subsequent OptionSet.Parse(IEnumerable<string>) calls.
Add<T>(string, string, Action<T>) : OptionSet
Registers each alias within prototype so that any options matching the aliases in prototype will be handled by action during any subsequent OptionSet.Parse(IEnumerable<string>) calls.
Add<TKey,TValue>(string, OptionAction<TKey, TValue>) : OptionSet
Registers each alias within prototype so that any options matching the aliases in prototype will be handled by action during any subsequent OptionSet.Parse(IEnumerable<string>) calls.
Add<TKey,TValue>(string, string, OptionAction<TKey, TValue>) : OptionSet
Registers each alias within prototype so that any options matching the aliases in prototype will be handled by action during any subsequent OptionSet.Parse(IEnumerable<string>) calls.
Parse(IEnumerable<string>) : List<string>
Parses each string within arguments, invoking any registered actions if a registered option is encountered.
WriteOptionDescriptions(System.IO.TextWriter)
Writes Mono.Options.Option documentation to o.

Protected Methods

CreateOptionContext() : OptionContext
Creates an Mono.Options.OptionContext instance.
override
GetKeyForItem(Option) : string
Returns item.GetNames()[0].
GetOptionForName(string) : Option
Looks up the Mono.Options.Option registered to handle the option name option.
GetOptionParts(string, out string, out string, out string, out string) : bool
Splits argument into its constituent parts.
override
InsertItem(int, Option)
Inserts item at the specified index.
Parse(string, OptionContext) : bool
Parses argument and invokes Option.Invoke(OptionContext) if appropriate.
override
RemoveItem(int)
Removes the Mono.Options.Option at the specified index.
override
SetItem(int, Option)
Removes the current Mono.Options.Option at index and sets item as the value for the index value.