From 086db62a01e266e501fae0b4890569b3aca53ed1 Mon Sep 17 00:00:00 2001 From: Vigneash Sundararajan Date: Wed, 1 Jun 2022 20:16:57 -0700 Subject: [PATCH] Moving string based shortName constructor to be public. --- src/CommandLine/OptionAttribute.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/CommandLine/OptionAttribute.cs b/src/CommandLine/OptionAttribute.cs index 6ae51dac..ec009ea5 100644 --- a/src/CommandLine/OptionAttribute.cs +++ b/src/CommandLine/OptionAttribute.cs @@ -19,7 +19,13 @@ public sealed class OptionAttribute : BaseAttribute private char separator; private string group=string.Empty; - private OptionAttribute(string shortName, string longName) : base() + + /// + /// Initializes a new instance of the class. + /// + /// The short name of the option. + /// The long name of the option. + public OptionAttribute(string shortName, string longName) : base() { if (shortName == null) throw new ArgumentNullException("shortName"); if (longName == null) throw new ArgumentNullException("longName");