C# Class ArgParser, shared-source-cli-2.0

Mostra file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Methods

Method Description
ArgParser ( String switchSymbols ) : System
ArgParser ( String switchSymbols, Boolean caseSensitiveSwitches ) : System
ArgParser ( String switchSymbols, Boolean caseSensitiveSwitches, String switchChars ) : System
OnUsage ( String errorInfo ) : void
Parse ( ) : Boolean
Parse ( String args ) : Boolean

Protected Methods

Method Description
OnDoneParse ( ) : SwitchStatus
OnNonSwitch ( String value ) : SwitchStatus
OnSwitch ( String switchSymbol, String switchValue ) : SwitchStatus

Method Details

ArgParser() public method

public ArgParser ( String switchSymbols ) : System
switchSymbols String
return System

ArgParser() public method

public ArgParser ( String switchSymbols, Boolean caseSensitiveSwitches ) : System
switchSymbols String
caseSensitiveSwitches Boolean
return System

ArgParser() public method

public ArgParser ( String switchSymbols, Boolean caseSensitiveSwitches, String switchChars ) : System
switchSymbols String
caseSensitiveSwitches Boolean
switchChars String
return System

OnDoneParse() protected method

protected OnDoneParse ( ) : SwitchStatus
return SwitchStatus

OnNonSwitch() protected method

protected OnNonSwitch ( String value ) : SwitchStatus
value String
return SwitchStatus

OnSwitch() protected method

protected OnSwitch ( String switchSymbol, String switchValue ) : SwitchStatus
switchSymbol String
switchValue String
return SwitchStatus

OnUsage() public abstract method

public abstract OnUsage ( String errorInfo ) : void
errorInfo String
return void

Parse() public method

public Parse ( ) : Boolean
return Boolean

Parse() public method

public Parse ( String args ) : Boolean
args String
return Boolean