Open
Description
The following options class:
public class CommandLineOptions
{
[Value(0, Required = true)]
public string InputFileName { get; set; }
[Option('o', "output")]
public string OutputFileName { get; set; }
[Option('i', "include", Separator = ',')]
public IEnumerable<string> Included { get; set; }
[Option('e', "exclude", Separator = ',')]
public IEnumerable<string> Excluded { get; set; }
}
When provided to the default parser, with the commandline app.exe --exclude=a,b InputFile.txt
results in a MissingRequiredOptionError: A required value not bound to option name is missing
. I expected the library to accept InputFileName = InputFile.txt
and --exclude=a,b
as Excluded = { "a", "b" }
. Is there something else required to make this work as I expect, or is it a bug?