dotnet / dotnet/command-line-api

An option suggested again when dash entered '-'

Open
#1,076 3 comments 0 reactions 0 assignees View on GitHub
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

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.