-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decision on should short alias on template parameter be generated by default #3238
Comments
Follow-up questions for @baronfel:
In every case, we should try to solve the need expressed in the usage. |
I have some of this info from the tools that I previously created. From the 2105 templates that I've found in nuget.org, I see that 1525 do NOT have a host file. We can probably add some code to answer your other questions as well. Here are the reports that I just generated, there may be some useful info for you. In our Thursday meeting I will go over how to run these tools for @baronfel. |
We agreed that in scope of #2191 no change should be for this behavior. |
This is partially related to #3238 because the casing provided in the host configs can mess with expected results for case (in)sensitive parsing. |
We should not generate shortnames by default, due to the inconsistencies that Vlada has mentioned below. Template authors should have the expectation that the symbols they create are the exact representations the users will see. |
We decided not to change this behavior. |
Default behavior of current parser is to generate short alias on each template option, unless it is not mentioned in dotnetcli.host.json:
--Nullable
it will be-N
--nullable
it will be-nu
as-n
is already taken for--name
Now, if you don't want to have short name for the option, you need to put it dotnetcli.host.json with empty shortName:
which is inconvenient, and lot of Microsoft templates have to do it.
Originally posted by @vlada-shubina in #3173 (comment)
The text was updated successfully, but these errors were encountered: