Documentation for the C# command-line option parsing library

IOptionResults.GetOptionDefinition Method (String, Boolean)

Get the ID of the option for the provided name

OptionDefinition GetOptionDefinition(
   string optionName,
   bool caseSensitive


The long name of the option to get the ID of
If the option name's case should be considered

Return Value

The definition of the option or null if there is no option defined for the given name

See Also

IOptionResults Interface | CommandLine.OptParse Namespace | IOptionResults.GetOptionDefinition Overload List