/// <summary> /// Adds an option. /// </summary> /// <param name="options">The options.</param> public IConfigureArgument AddOption(params string[] options) { var option = new ConfigOption(); option.Options.AddRange(options); var configureOption = new ConfigureOption(configure, option); return(configureOption); }
/// <summary> /// Sets the options. /// </summary> /// <param name="options">The options.</param> public IConfigureArgument Option(params string[] options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } if (options.Length == 0) { throw new ArgumentException($"Argument '{nameof(options)}' cannot be empty."); } var option = new ConfigOption(); option.Options.AddRange(options); var configureOption = new ConfigureOption(this, option); configuration.Options.Add(option); return(configureOption); }