Exemple #1
0
        public OptionGroup WithGroup(string groupValue, Action <OptionGroup> groupInitializer)
        {
            var specifications =
                new List <OptionValueSpecification>(_groupSpecification.ValueSpecifications)
            {
                OptionValueSpecification.ForCommand(groupValue)
            };
            var optionGroup = new OptionGroup(specifications.ToArray());

            groupInitializer(optionGroup);
            _childGroups.Add(optionGroup);
            return(this);
        }
Exemple #2
0
 public OptionGroup(string group) : this(OptionValueSpecification.ForCommand(group))
 {
 }