-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed as not planned
Labels
Description
Steps to reproduce
dotnet new --helpExpected behavior
should not have -lang as a shorthand for --language, which is sufficient on its own:
.. snip ..
--language Filters templates based on language and specifies the language of the template to create.
.. snip ..Actual behavior
has -lang, --language, which is a odd one out as the convention is to either have "single character followed by a single hyphen" and/or "full name after double hyphen".
FWIW, gcc and clang use -x to specify language:
// C++
gcc -x c++ -O -Wall -o myapp.exe /dev/stdin <<<"int main(){return 0;}"
// or C
clang -x c -O -Wall -o myapp.exe /dev/stdin <<<"int main(void){return 0;}"which dotnet-new can use as well.
Environment data
dotnet --info output:
.NET Core SDK (reflecting any global.json):
Version: 3.1.100
Commit: cd82f021f4
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.14
OS Platform: Darwin
RID: osx.10.14-x64
Base Path: /Users/adeel/.dotnet/sdk/3.1.100/
Host (useful for support):
Version: 3.1.0
Commit: 65f04fb6db