From d35a1fbf1166ea7b2bd896bad4b688c0568294ce Mon Sep 17 00:00:00 2001 From: Nick Lucas Date: Tue, 30 May 2017 16:02:44 +0100 Subject: [PATCH 1/2] Set AllowMultipple to false on attrbiutes with it true. It should always have been false --- src/EntryPoint/Arguments/BaseOptionAttribute.cs | 2 +- src/EntryPoint/HelpAttribute.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EntryPoint/Arguments/BaseOptionAttribute.cs b/src/EntryPoint/Arguments/BaseOptionAttribute.cs index fa02a06..aff53bf 100644 --- a/src/EntryPoint/Arguments/BaseOptionAttribute.cs +++ b/src/EntryPoint/Arguments/BaseOptionAttribute.cs @@ -12,7 +12,7 @@ namespace EntryPoint.Arguments { /// [AttributeUsage( AttributeTargets.Property, - AllowMultiple = true, + AllowMultiple = false, Inherited = true)] public abstract class BaseOptionAttribute : Attribute { internal BaseOptionAttribute(IOptionStrategy optionStrategy) { diff --git a/src/EntryPoint/HelpAttribute.cs b/src/EntryPoint/HelpAttribute.cs index 068548c..a9e8178 100644 --- a/src/EntryPoint/HelpAttribute.cs +++ b/src/EntryPoint/HelpAttribute.cs @@ -13,7 +13,7 @@ namespace EntryPoint { /// [AttributeUsage( AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Method, - AllowMultiple = true, + AllowMultiple = false, Inherited = true)] public class HelpAttribute : Attribute { From 9ad1080d60acd7a3d681cc9d378c81bf9ccdf410 Mon Sep 17 00:00:00 2001 From: Nick Lucas Date: Tue, 30 May 2017 16:08:32 +0100 Subject: [PATCH 2/2] Update version number --- src/EntryPoint/EntryPoint.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EntryPoint/EntryPoint.csproj b/src/EntryPoint/EntryPoint.csproj index 7b12c46..d0db2c3 100644 --- a/src/EntryPoint/EntryPoint.csproj +++ b/src/EntryPoint/EntryPoint.csproj @@ -3,7 +3,7 @@ Lightweight and Composable CLI Argument Parser for all modern .Net platforms EntryPoint - 1.2.1 + 1.2.2 Nick Lucas netstandard1.6;net45 EntryPoint