Closed
Description
I just started using this library, so forgive me if this is stupid request:
When an empty option list is parsed, shouldn't a format error be added to the PostParsingState? As I'm sure you know, It would be a one line change to add
DefineOptionThatViolatesFormat(option);
to the block that tests whether the option is empty. (OptionGroupParser.cs L54)
e.g.
class Options
{
[OptionList('d', "date-range", Separator = ':')]
public List<string> DateRange { get; set; }
}
>foo.exe -d
-d/--date-range option violates format
>