Used to control parsing of command line arguments.
Namespace: MbUnit.Core.Cons.CommandLine
Assembly: MbUnit.Framework (in MbUnit.Framework.dll)
Syntax
| C# | Visual Basic | Visual C++ |
[FlagsAttribute] public enum CommandLineArgumentType
<FlagsAttribute> _ Public Enumeration CommandLineArgumentType
[FlagsAttribute] public enum class CommandLineArgumentType
Members
| Member | Description |
|---|---|
| Required |
Indicates that this field is required. An error will be displayed
if it is not present when parsing arguments.
|
| Unique |
Only valid in conjunction with Multiple.
Duplicate values will result in an error.
|
| Multiple |
Inidicates that the argument may be specified more than once.
Only valid if the argument is a collection
|
| 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.
|
| LastOccurenceWins |
For non-collection arguments, when the argument is specified more than
once no error is reported and the value of the argument is the last
value which occurs in the argument list.
|
| 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.
|
Remarks
Command line parsing code from Peter Halam, http://www.gotdotnet.com/community/usersamples/details.aspx?sampleguid=62a0f27e-274e-4228-ba7f-bc0118ecc41e
See Also
MbUnit.Core.Cons.CommandLine Namespace