C# Class FastFind.FastFindArgumentParser

Implements the command line parsing for the Fast Find program.
Inheritance: ArgParser
ファイルを表示 Open project: Wintellect/FastFileFinder

Public Methods

Method Description
FastFindArgumentParser ( ) : System

Initializes a new instance of the FastFindArgumentParser class.

OnUsage ( String errorInfo ) : void

Reports correct command line usage.

Protected Methods

Method Description
OnDoneParse ( ) : SwitchStatus

Called when parsing is finished so final sanity checking can be performed.

OnNonSwitch ( String value ) : SwitchStatus

Called when a non-switch value is parsed out.

OnSwitch ( String switchSymbol, String switchValue ) : SwitchStatus

Called when a switch is parsed out.

Private Methods

Method Description
TestPath ( String pathToTest ) : SwitchStatus

Isolates the checking for the path parameter.

Method Details

FastFindArgumentParser() public method

Initializes a new instance of the FastFindArgumentParser class.
public FastFindArgumentParser ( ) : System
return System

OnDoneParse() protected method

Called when parsing is finished so final sanity checking can be performed.
protected OnDoneParse ( ) : SwitchStatus
return SwitchStatus

OnNonSwitch() protected method

Called when a non-switch value is parsed out.
protected OnNonSwitch ( String value ) : SwitchStatus
value String /// The value parsed out. ///
return SwitchStatus

OnSwitch() protected method

Called when a switch is parsed out.
protected OnSwitch ( String switchSymbol, String switchValue ) : SwitchStatus
switchSymbol String /// The switch value parsed out. ///
switchValue String /// The value of the switch. For flag switches this is null/Nothing. ///
return SwitchStatus

OnUsage() public method

Reports correct command line usage.
public OnUsage ( String errorInfo ) : void
errorInfo String /// The string with the invalid command line option. ///
return void