C# Class Deveel.Configuration.Parser

Inheritance: ICommandLineParser
Show file Open project: deveel/deveel-cli Class Usage Examples

Public Methods

Method Description
Create ( ParseStyle parseStyle ) : Parser
Parse ( Options options, string arguments, string>.IEnumerable properties, bool stopAtNonOption ) : ICommandLine

Protected Methods

Method Description
CheckRequiredOptions ( Options options ) : void
Flatten ( Options options, string arguments, bool stopAtNonOption ) : String[]
Parser ( ) : System
ProcessOption ( IOptions options, string arg, string tokens, int &index ) : void
ProcessProperties ( IOptions options, string>.IEnumerable properties ) : void

Private Methods

Method Description
AssertNotSelected ( IOptionGroup group, IOption option ) : void
ProcessArguments ( IOptions options, OptionValue opt, string tokens, int &index ) : void
SafeGetOptionValue ( IOption option ) : OptionValue

Method Details

CheckRequiredOptions() protected method

protected CheckRequiredOptions ( Options options ) : void
options Options
return void

Create() public static method

public static Create ( ParseStyle parseStyle ) : Parser
parseStyle ParseStyle
return Parser

Flatten() protected abstract method

protected abstract Flatten ( Options options, string arguments, bool stopAtNonOption ) : String[]
options Options
arguments string
stopAtNonOption bool
return String[]

Parse() public method

public Parse ( Options options, string arguments, string>.IEnumerable properties, bool stopAtNonOption ) : ICommandLine
options Options
arguments string
properties string>.IEnumerable
stopAtNonOption bool
return ICommandLine

Parser() protected method

protected Parser ( ) : System
return System

ProcessOption() protected method

protected ProcessOption ( IOptions options, string arg, string tokens, int &index ) : void
options IOptions
arg string
tokens string
index int
return void

ProcessProperties() protected method

protected ProcessProperties ( IOptions options, string>.IEnumerable properties ) : void
options IOptions
properties string>.IEnumerable
return void