public CommandLineOption Add(string name, char abbreviation = '\0', object defaultValue = null, CommandLineOptionValueType type = CommandLineOptionValueType.None, string description = null) { CommandLineOption option = new CommandLineOption(); option.Name = name; option.Abbreviation = abbreviation; option.DefaultValue = defaultValue; option.Type = type; option.Description = description; Add(option); return(option); }
public CommandLineOption Add(string name, CommandLineOptionValueType type = CommandLineOptionValueType.None, object defaultValue = null, char abbreviation = '\0', string description = null) { return(Add(name, abbreviation, defaultValue, type, description)); }