dotnet / dotnet/command-line-api

dotnet-suggest doesn't suggest after typing a dash or two

Open
#1,039 4 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

I was trying out dotnet-suggest, and found a very strange thing:

When I type in:

```
t-rex
```

I get suggestions. But when I type in an extra `-` or `--`, I don't get any. If I type in first letter (e.g. `--f`), I get suggestions again.

It's a very natural thing in PowerShell to type in the name of the command, then a space and a dash, and then start tabbing until you find the parameter you're looking for but can't remember the name of. This doesn't work here and it's frustrating.

Basically, I want suggestions for all these inputs:

```
t-rex
t-rex -
t-rex --
t-rex --f
```

But I only get for the 1st one, and the 4th one, and that's just so strange and confusing.

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.