-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Enable long aliases #2107
Enable long aliases #2107
Conversation
@check-spelling-bot ReportUnrecognized words, please review:
Previously acknowledged words that are now absentactivatable amd Archs dsc FWW Globals hackathon lww mytool Packagedx parametermap Uninitialize WDAG whatif wsbTo accept these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands... in a clone of the [email protected]:Trenly/winget-cli.git repository
|
@check-spelling-bot ReportUnrecognized words, please review:
Previously acknowledged words that are now absentactivatable amd Archs dsc FWW Globals hackathon lww mytool Packagedx parametermap Uninitialize WDAG whatif wsbTo accept these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands... in a clone of the [email protected]:Trenly/winget-cli.git repository
|
Supporting multi-character aliases removes, or at least complicates greatly, this feature:
I can imagine that this might not be a widely used feature, but it would be a breaking change to remove it. Alternatively, we could say that you can chain together any number of characters after a What is the goal in having longer aliases? Based on the change I would assume that The biggest issue with an alias for this is that it's a universal argument, so it would conflict with any other alias if it were common. But I wouldn't be opposed to an arcane alias for it seeing as it has none today. Something like |
I did not realize that was a feature. You are correct that I did not consider it here.
The goal here is to allow overall extended functionality. I had simply used verbose as an example. There are use cases where a single letter alias doesn’t make sense, or would conflict with an alias of an already existing argument. This would allow for a wider range of aliases to be available. A secondary effect here is to make it easier to use in general. Looking from the perspective of a new user, and just as an example, I wouldn’t know that |
@check-spelling-bot ReportUnrecognized words, please review:
Previously acknowledged words that are now absentactivatable amd Archs dsc enr FWW Globals hackathon lww mytool OSVERSION Packagedx parametermap symlink Uninitialize WDAG whatif wsbTo accept these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands... in a clone of the [email protected]:Trenly/winget-cli.git repository
|
I've updated the PR so that any aliases longer than 1 character require the The other thought I had was that perhaps we could still use |
I meant that the alias for the verbose logs option would be the character
I am not opposed to alternate names for arguments. You don't even have to write new code for that necessarily (although it is probably the better solution). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about the delay in reviewing. I do think that the easiest way forward is allowing for alternate names for arguments while leaving the alias character stuff alone.
@check-spelling-bot ReportUnrecognized words, please review:
Previously acknowledged words that are now absentactivatable amd Archs dsc enr FWW Globals hackathon lww mytool OSVERSION Packagedx parametermap symlink Uninitialize WDAG whatif wsbTo accept these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands... in a clone of the [email protected]:Trenly/winget-cli.git repository
|
Ahhh, I misunderstood. Removed.
Made this the functionality. Aliases longer than 1 character now are functionally equivalent to alternate names |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test that ensures that there are no commands with arguments that collide should be updated to check against AlternateName
as well.
* Use default std::string_view constructor * Update test cases
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
This change allows for argument aliases to be more than 1 character
Microsoft Reviewers: Open in CodeFlow