Skip to content

empty OptionList doesn't show error #68

Closed
@turch

Description

@turch

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

>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions