Documentation for the C# command-line option parsing library

IOptionResults.GetOptionDefinition Method (Char, Boolean)

Get the ID of the option for the provided short name

OptionDefinition GetOptionDefinition(
   char optionName,
   bool caseSensitive
);

Parameters

optionName
The short name of the option to get the ID of
caseSensitive
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