NAnt SDK Documentation - v0.92

CommandLineParser.Parse Method 

Parses an argument list.

[Visual Basic]
Public Sub Parse( _
   ByVal args As String(), _
   ByVal destination As Object _
)
[C#]
public void Parse(
   string[] args,
   object destination
);

Parameters

args
The arguments to parse.
destination
The destination object on which properties will be set corresponding to the specified arguments.

Exceptions

Exception Type Condition
ArgumentNullException destination is a null reference.
ArgumentException The Type of destination does not match the argument specification that was used to initialize the parser.

See Also

CommandLineParser Class | NAnt.Core.Util Namespace