/// <summary> /// Initializes a new instance of the <see cref="OptionGroupInfo"/> class. /// </summary> /// <param name="usageInfo">The <see cref="UsageInfo"/> containing this <see cref="OptionGroupInfo"/></param> /// <param name="optionGroup">The option group.</param> /// <param name="optionStyles">The option styles.</param> internal OptionGroupInfo(UsageInfo usageInfo, OptionGroup optionGroup, OptionStyles optionStyles) { mOptionGroup = optionGroup; mUsageInfo = usageInfo; foreach (KeyValuePair<string, Option> entry in optionGroup.Options) { mOptions.Add(entry.Key, new OptionInfo(mUsageInfo, entry.Value, optionStyles)); } }
/// <summary> /// Initializes a new instance of the <see cref="OptionGroupInfo"/> class. /// </summary> /// <param name="usageInfo">The <see cref="UsageInfo"/> containing this <see cref="OptionGroupInfo"/></param> /// <param name="optionGroup">The option group.</param> /// <param name="optionStyles">The option styles.</param> internal OptionGroupInfo(UsageInfo usageInfo, OptionGroup optionGroup, OptionStyles optionStyles) { mOptionGroup = optionGroup; mUsageInfo = usageInfo; foreach (KeyValuePair <string, Option> entry in optionGroup.Options) { mOptions.Add(entry.Key, new OptionInfo(mUsageInfo, entry.Value, optionStyles)); } }
/// <summary> /// Initializes a new instance of the <see cref="OptionInfo"/> class. /// </summary> /// <param name="usageInfo">The <see cref="UsageInfo" /> creating this OptionInfo</param> /// <param name="option">The option.</param> /// <param name="optionStyle">The option style.</param> internal OptionInfo(UsageInfo usageInfo, Option option, OptionStyles optionStyle) { mOption = option; mOptionStyles = optionStyle; mUsageInfo = usageInfo; foreach (string alias in mOption.Aliases) { mAliases.Add(OptionStyleManager.PrefixOptionForDescription(mOptionStyles, alias)); } }