C# Class Ntreev.Library.Commands.SwitchUsagePrinter

显示文件 Open project: NtreevSoft/CommandLineParser

Public Methods

Method Description
Print ( TextWriter writer, SwitchDescriptor switches ) : void
SwitchUsagePrinter ( string name, object instance ) : System

Private Methods

Method Description
GetString ( SwitchDescriptor descriptor ) : string
Print ( CommandTextWriter writer, SwitchDescriptor switches ) : void
PrintDescription ( CommandTextWriter writer, SwitchDescriptor switches ) : void
PrintOption ( CommandTextWriter writer, SwitchDescriptor descriptor ) : void
PrintOptions ( CommandTextWriter writer, SwitchDescriptor switches ) : void
PrintRequirement ( CommandTextWriter writer, SwitchDescriptor descriptor ) : void
PrintRequirements ( CommandTextWriter writer, SwitchDescriptor switches ) : void
PrintSummary ( CommandTextWriter writer, SwitchDescriptor switches ) : void
PrintUsage ( CommandTextWriter writer, SwitchDescriptor switches ) : void

Method Details

Print() public method

public Print ( TextWriter writer, SwitchDescriptor switches ) : void
writer System.IO.TextWriter
switches SwitchDescriptor
return void

SwitchUsagePrinter() public method

public SwitchUsagePrinter ( string name, object instance ) : System
name string
instance object
return System