Example #1
0
        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);
        }
Example #2
0
        // construction and disposal

        public CommandLineParser()
        {
            Arguments = new CommandLineArgumentCollection(this);
        }
Example #3
0
 public virtual void AddArgument(CommandLineArgumentCollection argumentCollection, IDictionary dictionary, MemberInfo member)
 {
     argumentCollection.Add(this.Argument);
     dictionary.Add(this.Argument, member);
 }