This project is read-only.


AllowMultiple causes exception


In the \Arguments\EnumeratedValueArgument.cs file, there is a function internal override void Certify(TValue value), inside this function, it validates the input value against allowed values. However, there is a bug there.

Here is the original code,
    internal override void Certify(TValue value)
        if (!allowedValues.Contains(Value))
            throw new CommandLineArgumentOutOfRangeException(String.Format(
                                                                 Messages.EXC_ARG_ENUM_OUT_OF_RANGE, Value,
                                                                 Name), Name);
It checks property Value instead of the value passed in, which causes an exception to be thrown
Closed Feb 21, 2016 at 9:29 PM by Trupik
This issue has been addressed in v3 which you now can get from NuGet.
The project has been migrated to GitHub, please use it for tracking the project, getting information about new releases & reporting all potential issues.


Trupik wrote Apr 27, 2014 at 9:39 PM

Thanks for pointing this out. Fixed.

wrote Feb 21, 2016 at 9:29 PM