Method | Description | |
---|---|---|
OnUsage ( String errorInfo ) : void |
Reports correct command line usage.
|
|
Parse ( String args ) : System.Boolean |
Parses an arbitrary set of arguments.
|
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. Every derived class must implement an OnSwitch method or a switch is considered an error. |
Method | Description | |
---|---|---|
ArgParser ( String flagSymbols, String dataSymbols, System.Boolean caseSensitiveSwitches ) : System | ||
ArgParser ( String flagSymbols, String dataSymbols, System.Boolean caseSensitiveSwitches, String switchChars ) : System | ||
IsSwitchInArray ( String switchArray, String value ) : |
Looks to see if the switch is in the array.
|
|
StartsWithSwitchChar ( String value ) : System.Boolean |
Looks to see if this string starts with a switch character.
|
protected OnNonSwitch ( String value ) : SwitchStatus | ||
value | String | /// The value parsed out. /// |
return | SwitchStatus |
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 |
public abstract OnUsage ( String errorInfo ) : void | ||
errorInfo | String | /// The string with the invalid command line option. /// |
return | void |
public Parse ( String args ) : System.Boolean | ||
args | String | /// The string array to parse through. /// |
return | System.Boolean |