using System;
namespace Codeaddicts.ArgumentParser
{
///
/// Argument.
///
public class Argument : Attribute
{
///
/// Short command-line argument name
///
public readonly string Short;
///
/// Long command-line argument name
///
public readonly string Full;
///
/// false if it is a switch; otherweise, true.
///
public readonly bool HasValue;
///
/// Complete argument name
///
public string FriendlyShort { get { return string.Format ("-{0}", Short); } }
///
/// Complete argument name
///
public string FriendlyFull { get { return string.Format ("--{0}", Full); } }
///
/// Initializes a new instance of the class.
///
/// Short name (eg. p).
/// Full name (eg. param)
/// false if it is a switch; otherweise, true.
public Argument (string @short, string full, bool hasValue) {
Short = @short;
Full = full;
HasValue = hasValue;
}
}
}