Skip to content

Show subcommand help instead of main dotnet nuget trust command help for all cases #10788

@erdembayar

Description

@erdembayar

Details about Problem

NuGet product used (dotnet.exe):

Product version:

Worked before? If so, with which NuGet version: N/A

Repro steps and/or sample project

Printing out help doesn't help at all unless the error itself has to do with a command, argument, or option being invalid.
Current experience show help for dotnet nuget is different from nuget.exe. It show help when there is a exception like InvalidOperationException even though it's nothing to do with a command, argument, or option being invalid

For example:
image.png

It adds red marked help even though it's not really needed.
image.png

Verbose Logs

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions