From e6abc96cb5072f72bf1256c9395908ed8c5000b9 Mon Sep 17 00:00:00 2001 From: Daniel Thorne Date: Mon, 12 Dec 2022 14:02:11 -0600 Subject: [PATCH] Added `params` keyword for aliases in `VerbAttribute` constructor --- src/CommandLine/VerbAttribute.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CommandLine/VerbAttribute.cs b/src/CommandLine/VerbAttribute.cs index 6ee6024d..099876d4 100644 --- a/src/CommandLine/VerbAttribute.cs +++ b/src/CommandLine/VerbAttribute.cs @@ -22,7 +22,7 @@ public class VerbAttribute : Attribute /// Whether the verb is the default verb. /// aliases for this verb. i.e. "move" and "mv" /// Thrown if is null, empty or whitespace and is false. - public VerbAttribute(string name, bool isDefault = false, string[] aliases = null) + public VerbAttribute(string name, bool isDefault, params string[] aliases) { if (string.IsNullOrWhiteSpace(name)) throw new ArgumentException("name");