NAnt SDK Documentation - v0.92

AbstractSourceControlTask.CommandLineArguments Property

Command-line arguments for the program. The command line arguments are used to specify any cvs command options that are not available as attributes. These are appended after the command itself and are additive to whatever attributes are currently specified.

[Visual Basic]
<TaskAttribute(Name:="commandline", Required:=False, ExpandProperties:=True, ProcessXml:=True)>
Public Property CommandLineArguments As String
[C#]
[TaskAttribute(Name="commandline", Required=False, ExpandProperties=True, ProcessXml=True)]
public string CommandLineArguments {get; set;}

Example

<cvs-checkout cvsroot=":pserver:anonymous@cvs.sourceforge.net:/cvsroot/nant" module="nant" destination="e:\test\merillcornish\working" readonly="true" quiet="true" commandline="-n" cvsfullpath="C:\Program Files\TortoiseCVS\cvs.exe" />
Produces the cvs command:

c:\Program Files\TortoiseCVS\cvs.exe -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/nant -q checkout -n nant

See Also

AbstractSourceControlTask Class | NAnt.SourceControl.Tasks Namespace