Class OptionParser

Namespace
Pixie.Options
Assembly
Pixie.dll

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

log ILog

A 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

argument string

An argument to the option, as a string.

Returns

bool

true if the argument was accepted as part of the option; otherwise, false is returned and parsing stops for the option.