Class OptionParser
Describes a parser for a command-line option.
public abstract class OptionParser
- Inheritance
-
OptionParser
- Inherited Members
Constructors
OptionParser()
protected OptionParser()
Methods
GetValue(ILog)
Gets the value that was parsed by the option parser.
public abstract object GetValue(ILog log)
Parameters
logILogA log to which errors can be sent.
Returns
- object
The resulting value.
Parse(string)
Parses an argument to the option.
public abstract bool Parse(string argument)
Parameters
argumentstringAn argument to the option, as a string.
Returns
- bool
trueif the argument was accepted as part of the option; otherwise,falseis returned and parsing stops for the option.