C# Class eldo.CommandLineOptions

Command Line Options for eldo
显示文件 Open project: phryneas/eldo

Public Properties

Property Type Description
arguments List
shell string
verbosity int

Public Methods

Method Description
CommandLineOptions ( string args ) : System

constructor, parses command line arguments

Debug ( int minLevel, debugCallback callback ) : void

will call debugCallback with a logging function if verbosity is at least minLevel

Debug ( int minlevel, string format ) : void

print message if verbosity is at least minlevel

Private Methods

Method Description
Error ( string format ) : void

logs an error

log ( string format ) : void

all logging output will pass through this method

Method Details

CommandLineOptions() public method

constructor, parses command line arguments
public CommandLineOptions ( string args ) : System
args string command line arguments (without execution file name)
return System

Debug() public method

will call debugCallback with a logging function if verbosity is at least minLevel
public Debug ( int minLevel, debugCallback callback ) : void
minLevel int
callback debugCallback
return void

Debug() public method

print message if verbosity is at least minlevel
public Debug ( int minlevel, string format ) : void
minlevel int
format string
return void

Property Details

arguments public_oe property

unparsed arguments
public List arguments
return List

shell public_oe property

shell, if specified
public string shell
return string

verbosity public_oe property

verbosity. number of times the -v flag is passed
public int verbosity
return int