dotnet / dotnet/sdk

`dotnet run --help` shows wrong order of `options` and `applicationArguments`

Open
#53,050 2 comments 0 reactions 0 assignees View on GitHub
Area-CLI untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Describe the bug

`dotnet run --help` shows `applicationsArguments` before `options` but `dotnet run` actually expects `options` first.

### To Reproduce

1. Run `dotnet run --help`

The output is
```
Usage:
dotnet run [...] [options]
```
but should be (similar to `dotnet watch --help`):
```
Usage:
dotnet run [options] [[--] ...]]
```

### Further technical details

Could reproduce this with SDK 9.0.114 and SDK 10.0.103.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.