CommandLineArgument Class

Summary

Represents a valid command-line argument.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Util
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["CommandLineArgument"] class Type type-node

Syntax

public class CommandLineArgument

Constructors

Name Summary
CommandLineArgument(CommandLineArgumentAttribute, PropertyInfo) Initializes a new instance of the NAnt.Core.Util.CommandLineArgument class.

Properties

Name Value Summary
AllowMultiple bool
Gets a value indicating whether the argument can be specified multiple times.
Description string
Gets the description of the argument.
IsArray bool
Gets a value indicating whether the argument is array-based.
IsCollection bool
Gets a value indicating whether the argument is collection-based.
IsDefault bool
Gets a value indicating whether the argument is the default argument.
IsExclusive bool
Gets a value indicating whether the argument cannot be combined with other arguments.
IsNameValueCollection bool
Gets a value indicating whether the argument is a set of name/value pairs.
IsRequired bool
Gets a value indicating whether the argument is required.
LongName string
Gets the long name of the argument.
Property PropertyInfo
Gets the property that backs the argument.
SeenValue bool
Gets a value indicating whether a matching command-line argument was already found.
ShortName string
Gets the short name of the argument.
Type Type
Gets the NAnt.Core.Util.CommandLineArgument.Type of the property to which the argument is applied.
Unique bool
Gets a value indicating whether the argument can only be specified once with a certain value.
ValueType Type
Gets the underlying NAnt.Core.Util.CommandLineArgument.Type of the argument.

Methods

Name Value Summary
Finish(Object) void
Sets the value of the argument on the specified object.
SetValue(string) void
Assigns the specified value to the argument.