Skip to content

dotnet run --help shows wrong order of options and applicationArguments #53050

@UniQP

Description

@UniQP

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 [<applicationArguments>...] [options]

but should be (similar to dotnet watch --help):

Usage:
  dotnet run [options] [[--] <application arguments>...]]

Further technical details

Could reproduce this with SDK 9.0.114 and SDK 10.0.103.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions