Skip to content

Bad help "--version" #2942

Closed
dotnet/core-setup
#3722
@livarcocc

Description

@livarcocc

From @HarelM on October 21, 2017 21:17

Steps to reproduce

run dotnet from command line.
this outputs:
Usage: dotnet [options]
Usage: dotnet [path-to-application]

Options:
-h|--help Display help.
--version Display version.

path-to-application:
The path to an application .dll file to execute.

Then run dotnet --version
To receive:
Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409

Expected behavior

Either --version will work or -- version will not appear in the help.

Actual behavior

Irrelevant error message - turn out I needed to use --info instead of --version

Environment data

dotnet --info output:
Microsoft .NET Core Shared Framework Host

Version : 2.0.0
Build : e8b8861

Copied from original issue: dotnet/cli#7881

Metadata

Metadata

Assignees

Labels

area-HostenhancementProduct code improvement that does NOT require public API changes/additions

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions