dotnet / dotnet/command-line-api
An option suggested again when dash entered '-'
Open
Area-Completions
bug
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
If input contain a dash '-' the suggestions include all the options even those that are already provided.
Example:
```
new Command("cmd1")
{
new Option("opt1")
{
Argument = new Argument{ Arity = ArgumentArity.ExactlyOne }
}
}
```
Input: `cmd1 -opt1 aa -`
Suggestions include -op1 again
Contributor guide
Assessment
This issue has not been assessed yet.