// NAnt - A .NET build tool // Copyright (C) 2001 Gerry Shaw // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // Gert Driesen (gert.driesen@ardatis.com) using System; namespace NAnt.Core.Util { /// /// Allows control of command line parsing. /// [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)] public class CommandLineArgumentAttribute : Attribute { #region Public Instance Constructors /// /// Initializes a new instance of the class /// with the specified argument type. /// /// Specifies the checking to be done on the argument. public CommandLineArgumentAttribute(CommandLineArgumentTypes argumentType) { _argumentType = argumentType; } #endregion Public Instance Constructors #region Public Instance Properties /// /// Gets or sets the checking to be done on the argument. /// /// The checking that should be done on the argument. public CommandLineArgumentTypes Type { get { return _argumentType; } } /// /// Gets or sets the long name of the argument. /// /// The long name of the argument. public string Name { get { return _name; } set { _name = value; } } /// /// Gets or sets the short name of the argument. /// /// The short name of the argument. public string ShortName { get { return _shortName; } set { _shortName = value; } } /// /// Gets or sets the description of the argument. /// /// The description of the argument. public string Description { get { return _description; } set { _description = value; } } #endregion Public Instance Properties #region Private Instance Fields private CommandLineArgumentTypes _argumentType; private string _name; private string _shortName; private string _description; #endregion Private Instance Fields } }