NAnt SDK Documentation - v0.92

CommandLineArgumentTypes Enumeration

Used to control parsing of command-line arguments.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[Visual Basic]
<Serializable, _  Flags>
Public Enum CommandLineArgumentTypes
[C#]
[Serializable]
[Flags]
public enum CommandLineArgumentTypes

Members

Member Name Description Value
Required Indicates that this field is required. An error will be displayed if it is not present when parsing arguments. 1
Unique Only valid in conjunction with Multiple. Duplicate values will result in an error. 2
Multiple Inidicates that the argument may be specified more than once. Only valid if the argument is a collection 4
Exclusive Inidicates that if this argument is specified, no other arguments may be specified. 8
AtMostOnce The default type for non-collection arguments. The argument is not required, but an error will be reported if it is specified more than once. 0
MultipleUnique The default type for collection arguments. The argument is permitted to occur multiple times, but duplicate values will cause an error to be reported. 6

Requirements

Namespace: NAnt.Core.Util

Assembly: NAnt.Core (in NAnt.Core.dll)

See Also

NAnt.Core.Util Namespace