Open joshfree opened 5 years ago
@jamesBrosnahan thank you for the suggested feature!
It looks like System.CommandLine has implemented "typo correction" (see https://github.com/dotnet/command-line-api/pull/377), so this would be one potential feature we could enable when we switch over to use the new API. I don't know if that's something we have on the schedule yet, though.
Moved from original issue by @jamesBrosnahan at https://github.com/dotnet/core/issues/2587 :
Problem encountered on https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/create Operating System: Linux Ubuntu 18.04 - x64
Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
Typo using command outputs excessive information: dotnet new consle -o myApp
The dotnet command should do error checking prior to outputting a welcome message and then use a 'Did you mean' algorithm to determine if the template in the command is a typo or has not been installed; then prompt the user with a group of candidate templates or offer to download templates from the .NET Foundation if available.