/// <summary> /// Initializes a new instance of the <see cref="ConsoleManager"/> class. /// </summary> /// <param name="os">The os.</param> /// <param name="consoleName">Name of the console.</param> /// <param name="helpInfo">The help info.</param> private ConsoleManager(RequiredValuesOptionSet os, string consoleName, HelpInfo helpInfo) { ConsoleName = consoleName; _optionSet = os; Requirements = new List<Requirement>(); _helpInfo = helpInfo; }
/// <summary> /// Initializes a new instance of the <see cref="ConsoleManager"/> class using a specified value for help flag and text /// </summary> /// <param name="os">The os.</param> /// <param name="consoleName">Name of the console.</param> /// <param name="helpFlag">The help flag.</param> /// <param name="text">The text.</param> public ConsoleManager(RequiredValuesOptionSet os, string consoleName, string helpFlag, string[] text) : this(os, consoleName, null) { var help = os.AddFlag(helpFlag, "help"); _helpInfo = new HelpInfo("-" + helpFlag, () => help, text); }