C# Class RJH.CommandLineHelper.Parser

Implementation of a command-line parsing class. Is capable of having switches registered with it directly or can examine a registered class for any properties with the appropriate attributes appended to them.
显示文件 Open project: suntong/lang Class Usage Examples

Public Methods

Method Description
AddSwitch ( string name, string description ) : void
InternalValue ( string name ) : object
Parse ( ) : bool
Parser ( string commandLine ) : System
Parser ( string commandLine, object classForAutoAttributes ) : System
this ( string name ) : object

Private Methods

Method Description
ExtractApplicationName ( ) : void
HandleSwitches ( ) : void
SplitParameters ( ) : void

Method Details

AddSwitch() public method

public AddSwitch ( string name, string description ) : void
name string
description string
return void

InternalValue() public method

public InternalValue ( string name ) : object
name string
return object

Parse() public method

public Parse ( ) : bool
return bool

Parser() public method

public Parser ( string commandLine ) : System
commandLine string
return System

Parser() public method

public Parser ( string commandLine, object classForAutoAttributes ) : System
commandLine string
classForAutoAttributes object
return System

this() public method

public this ( string name ) : object
name string
return object