When the dotnet host is run without any arguments, it should display proper help
See original GitHub issueSteps to reproduce
dotnet
Expected behavior
See something along the lines of the following:
.NET Command Line Tools (1.0.0-preview1-002702)
Usage: dotnet [common-options] [command] [arguments]
Run your application: dotnet [path to your assembly.dll]
Arguments:
[command] The command to execute
[arguments] Arguments to pass to the command
Common Options (passed before the command):
-v|--verbose Enable verbose output
--version Display .NET CLI Version Number
--info Display .NET CLI Info
Common Commands:
new Initialize a basic .NET project
restore Restore dependencies specified in the .NET project
build Builds a .NET project
publish Publishes a .NET project for deployment (including the runtime)
run Compiles and immediately executes a .NET project
test Runs unit tests using the test runner specified in the project
pack Creates a NuGet package
Actual behavior
See the following:
Usage: dotnet [--help | app.dll]
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview1-002702)
Product Information:
Version: 1.0.0-preview1-002702
Commit Sha: 6cde21225e
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.11
OS Platform: Darwin
RID: osx.10.11-x64
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (6 by maintainers)
Top Results From Across the Web
Troubleshoot .NET tool usage issues
Discover the common issues when running .NET tools and possible solutions.
Read more >Select which .NET version to use
NET CLI must choose an SDK version for every dotnet command. It uses the latest SDK installed on the machine by default, even...
Read more >dotnet run command - .NET CLI
The dotnet run command provides a convenient option to run your application from the source code.
Read more >Configuration in ASP.NET Core
Command-line arguments using the Command-line configuration provider. ... The dotnet run command must be run in the project directory.
Read more >Main() and command-line arguments
Learn about Main() and command-line arguments. The 'Main' method is the entry point of an executable program.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Btw, I like your less clutter.
Hmmm … I can see that I had a flaw in my thinking. I was think the same info would be available via
dotnet --version
but didn’t actually check that assumption. Bad plan. I can also guess that there are tools that will check the version via that command and it would be bad to add more text there.Alternate proposal:
It’s not info that helps you with help, so it seems odd for two lines of version information to come at the top of the display. So, I propose to put the version info in the first line and add the Build commit in the last line. That seems like the value of the info is exactly commensurate with its placement.
On that note, what is the build SHA from? Which repo?