C# Class NuGet.CommandLineParser

Datei anzeigen Open project: xero-github/Nuget Class Usage Examples

Public Methods

Method Description
CommandLineParser ( ICommandManager manager ) : System
ExtractOptions ( ICommand command, IEnumerator argsEnumerator ) : ICommand
GetNextCommandLineItem ( IEnumerator argsEnumerator ) : string
ParseCommandLine ( IEnumerable commandLineArgs ) : ICommand

Private Methods

Method Description
AssignValue ( PropertyInfo property, ICommand command, string option, object value ) : void

Method Details

CommandLineParser() public method

public CommandLineParser ( ICommandManager manager ) : System
manager ICommandManager
return System

ExtractOptions() public method

public ExtractOptions ( ICommand command, IEnumerator argsEnumerator ) : ICommand
command ICommand
argsEnumerator IEnumerator
return ICommand

GetNextCommandLineItem() public static method

public static GetNextCommandLineItem ( IEnumerator argsEnumerator ) : string
argsEnumerator IEnumerator
return string

ParseCommandLine() public method

public ParseCommandLine ( IEnumerable commandLineArgs ) : ICommand
commandLineArgs IEnumerable
return ICommand