/// <summary> /// Initialize /// </summary> /// <param name="index">Position in command line</param> /// <param name="name">Argument name</param> /// <param name="valueRaw">Value with scapes</param> /// <param name="value">Value without scapes</param> /// <param name="format">Argument format</param> /// <param name="delimiterArgument">Delimiter format if exists</param> /// <param name="delimiterValueInName">Value delimiter if exists</param> public ArgumentRaw(int index, string name, string valueRaw, string value, ArgumentFormat format, string delimiterArgument, string delimiterValueInName) { this.Index = index; this.Name = name; this.Value = value; this.ValueRaw = valueRaw; this.Format = format; this.DelimiterArgument = delimiterArgument; this.DelimiterValueInName = delimiterValueInName; }
//TODO: implement gluing //This means a parameter e.g. "t" can be invoked by '-t""', notice that there is no space between the parameter name and value //public bool AllowGluing = false; public ArgumentParser(ArgumentFormat argumentFormat, bool caseInsensitiveKey) { Format = argumentFormat; CaseInsensitiveKey = caseInsensitiveKey; }