From 82c2a904ffb167beee1a137926f94dab54fe0d12 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Sat, 9 Jan 2021 22:22:53 -0500 Subject: [PATCH] overload for CommandLineOptionCollection.Add --- MBS.Framework/CommandLineOption.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MBS.Framework/CommandLineOption.cs b/MBS.Framework/CommandLineOption.cs index 44d6059..916f5eb 100644 --- a/MBS.Framework/CommandLineOption.cs +++ b/MBS.Framework/CommandLineOption.cs @@ -77,6 +77,10 @@ namespace MBS.Framework _byAbbreviation[item.Abbreviation] = item; } + 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); + } public CommandLineOption Add(string name, char abbreviation = '\0', object defaultValue = null, CommandLineOptionValueType type = CommandLineOptionValueType.None, string description = null) { CommandLineOption option = new CommandLineOption();