public override void AddArgument(CommandLineArgumentCollection argumentCollection, IDictionary dictionary, MemberInfo member) { if (_enumType == null) { throw new InvalidOperationException("SetMember must be called before AddArgument"); } foreach (CommandLineModeFlagArgument flag in Argument.Parts) { argumentCollection.Add(flag); dictionary.Add(flag, member); } argumentCollection.Add(Argument); }
// construction and disposal public CommandLineParser() { Arguments = new CommandLineArgumentCollection(this); }
public virtual void AddArgument(CommandLineArgumentCollection argumentCollection, IDictionary dictionary, MemberInfo member) { argumentCollection.Add(this.Argument); dictionary.Add(this.Argument, member); }