C# Class ToolBelt.CommandLineArgument

A valid command line argument
Mostrar archivo Open project: jlyonsmith/ToolBelt

Public Methods

Method Description
IsValidForCommand ( string command ) : bool

Tests if the given command is valid. A null or empty command is always valid.

ParseAndSetTarget ( string argString ) : void

Parse string value and assign to the target object property

ToString ( ) : string

Returns the value of the argument as a string

Private Methods

Method Description
CommandLineArgument ( object argTarget, CommandLineArgumentAttribute argAttribute, PropertyInfo argPropertyInfo ) : System

Constructs a new command line argument.

MaybeQuoteString ( string value ) : string

Method Details

IsValidForCommand() public method

Tests if the given command is valid. A null or empty command is always valid.
public IsValidForCommand ( string command ) : bool
command string
return bool

ParseAndSetTarget() public method

Parse string value and assign to the target object property
/// Duplicate argument OR invalid value. ///
public ParseAndSetTarget ( string argString ) : void
argString string
return void

ToString() public method

Returns the value of the argument as a string
public ToString ( ) : string
return string