diff --git a/src/libcmdline/CommandLine.cs b/src/libcmdline/CommandLine.cs
index 885c8cbb..2f9d340c 100644
--- a/src/libcmdline/CommandLine.cs
+++ b/src/libcmdline/CommandLine.cs
@@ -201,8 +201,9 @@ public class OptionAttribute : BaseOptionAttribute
/// Initializes a new instance of the class.
///
/// The short name of the option or null if not used.
- /// The long name of the option or null if not used.
- public OptionAttribute(string shortName, string longName)
+ /// The long name of the option or null if not used.
+ /// The option's mutually exclusive set
+ public OptionAttribute(string shortName = null, string longName = null, string mutuallyExclusiveSet = null)
{
if (!string.IsNullOrEmpty(shortName))
_uniqueName = shortName;
@@ -213,7 +214,9 @@ public OptionAttribute(string shortName, string longName)
throw new InvalidOperationException();
base.ShortName = shortName;
- base.LongName = longName;
+ base.LongName = longName;
+ if (mutuallyExclusiveSet != null)
+ MutuallyExclusiveSet = mutuallyExclusiveSet;
}
#if UNIT_TESTS