C# Class Ntreev.Library.Commands.CommandLineParser

Afficher le fichier Open project: NtreevSoft/CommandLineParser Class Usage Examples

Private Properties

Свойство Type Description
Invoke void

Méthodes publiques

Méthode Description
CommandLineParser ( object instance ) : System
CommandLineParser ( string name, object instance ) : System
Invoke ( string commandLine ) : bool
Parse ( string commandLine ) : bool
PrintMethodUsage ( ) : void
PrintMethodUsage ( string methodName ) : void
PrintSummary ( ) : void
PrintUsage ( ) : void
PrintVersion ( ) : void
Split ( string commandLine ) : string[]

Méthodes protégées

Méthode Description
CreateMethodUsagePrinter ( string name, object instance ) : MethodUsagePrinter
CreateSwitchUsagePrinter ( string name, object instance ) : SwitchUsagePrinter
IsMethodVisible ( MethodDescriptor descriptor ) : bool
IsSwitchVisible ( SwitchDescriptor descriptor ) : bool

Private Methods

Méthode Description
Invoke ( object instance, string arguments, MethodInfo methodInfo, IEnumerable switches ) : void

Method Details

CommandLineParser() public méthode

public CommandLineParser ( object instance ) : System
instance object
Résultat System

CommandLineParser() public méthode

public CommandLineParser ( string name, object instance ) : System
name string
instance object
Résultat System

CreateMethodUsagePrinter() protected méthode

protected CreateMethodUsagePrinter ( string name, object instance ) : MethodUsagePrinter
name string
instance object
Résultat MethodUsagePrinter

CreateSwitchUsagePrinter() protected méthode

protected CreateSwitchUsagePrinter ( string name, object instance ) : SwitchUsagePrinter
name string
instance object
Résultat SwitchUsagePrinter

Invoke() public méthode

public Invoke ( string commandLine ) : bool
commandLine string
Résultat bool

IsMethodVisible() protected méthode

protected IsMethodVisible ( MethodDescriptor descriptor ) : bool
descriptor MethodDescriptor
Résultat bool

IsSwitchVisible() protected méthode

protected IsSwitchVisible ( SwitchDescriptor descriptor ) : bool
descriptor SwitchDescriptor
Résultat bool

Parse() public méthode

public Parse ( string commandLine ) : bool
commandLine string
Résultat bool

PrintMethodUsage() public méthode

public PrintMethodUsage ( ) : void
Résultat void

PrintMethodUsage() public méthode

public PrintMethodUsage ( string methodName ) : void
methodName string
Résultat void

PrintSummary() public méthode

public PrintSummary ( ) : void
Résultat void

PrintUsage() public méthode

public PrintUsage ( ) : void
Résultat void

PrintVersion() public méthode

public PrintVersion ( ) : void
Résultat void

Split() public static méthode

public static Split ( string commandLine ) : string[]
commandLine string
Résultat string[]