dotnet / dotnet/command-line-api

Missing argument sequence based on argument name

Open
#1,346 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

There is a really confusing/silent error based on the name of a sequence argument

```cs
new Argument("file").ExistingOnly();
```

Builds and executes fine, but the resulting array always has size 0.

If I change the argument name from `file` to `files` I suddenly get the argument populated!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.