dotnet / dotnet/command-line-api
FileSystemInfo[] Argument type not parsing in preview4
Open
Area-NamingConventionBinder
Area-Parser and Binder
bug
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
I was previously using preview1 of this project and had this code
```csharp
AddArgument(new Argument("files-or-directories", LocalizedStrings.BinaryAnalysisContentHelp)
{
Arity = ArgumentArity.OneOrMore,
}.ExistingOnly());
```
which worked as desired, however now it is throwing me an exception:
```
Unhandled exception: System.ArgumentException: Type System.Collections.Generic.IReadOnlyCollection`1[System.IO.FileSystemInfo] cannot be created without a custom binder.
at System.CommandLine.Binding.ArgumentConverter.CreateEnumerable(Type type, Type itemType, Int32 capacity)
```
Contributor guide
Assessment
This issue has not been assessed yet.