/// <summary> /// Adds the specified CommandLineOption object to the list of supported command-line options. /// </summary> /// <param name="option">The option to add.</param> public void AddOption(CommandLineOption option) { CheckNameAvailable(option.Name); Options.Add(option); option.Parser = this; }
/// <summary> /// Initializes a new instance of the ParsingException class with the specified message and /// an instance of CommandLineOption that is invalid. /// </summary> /// <param name="message">The message of this exception.</param> /// <param name="option">The option that caused this exception.</param> public ParsingException(string message, CommandLineOption option) : base(message) { this.Option = option; }