namespace NDesk.Options
{
	public class OptionContext
	{
		private Option option;

		private string name;

		private int index;

		private OptionSet set;

		private OptionValueCollection c;

		public Option Option
		{
			get
			{
				return option;
			}
			set
			{
				option = value;
			}
		}

		public string OptionName
		{
			get
			{
				return name;
			}
			set
			{
				name = value;
			}
		}

		public int OptionIndex
		{
			get
			{
				return index;
			}
			set
			{
				index = value;
			}
		}

		public OptionSet OptionSet
		{
			get
			{
				return set;
			}
		}

		public OptionValueCollection OptionValues
		{
			get
			{
				return c;
			}
		}

		public OptionContext(OptionSet set)
		{
			this.set = set;
			c = new OptionValueCollection(this);
		}
	}
}
