-
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
use -v / --version to specify a version for a package. Remove version information dupe with --info #479
Comments
Your misunderstanding comes from the difference between command line options for the winget cli and its subcommands. To me this works as expected: # show winget version
PS> winget -v
PS> winget --version
# pass version option to winget info subcommand
PS> winget show Microsoft.dotnet -v 3.1.301 -e
PS> winget show Microsoft.dotnet --version 3.1.301 --exact See https://docs.microsoft.com/en-us/windows/package-manager/winget/#use-winget for details. |
Thanks for your help! Infact I misunderstood this because I would not expect that -v or --v can have different functions at different levels of this command winget -v shows the version Let's tag it "interesting". On the other hand: why we need to specify -e or --exact at all. If we specify a version with install -v or --v this should be sufficient. Do you see a potential issue how specifying a version could still be missing something? |
That's a known user experience issue. An explanation can be found here: #450 (comment) The main issue ticket this problem is being tracked with is #292. |
@Karl-WE thank you for sharing your perspective. We have had several different views on syntax and usability. Most of the commands are thought of as "top level", or "first level" instructions. As such they have a long form Initially, |
Thanks for the behind the scenes reason. I understand it much better now. Hope the split issue / FR can help for better UX. |
Does this issue feature fulfills any target anymore, otherwise I would close. |
Can we please switch to the same syntax all modern cli tools seem to be going towards for specifying a version?
Having to add a |
Description of the new feature/enhancement
currently -v / --version shows the version of the tool.
--info does the same but more verbose (and needed for filing bugs here to complete the information in the template
Proposed technical implementation details (optional)
Please remove --v / -v to display the version and use -i / --info instead
Why?
If you have 2 similar packages by tag or name then the table output is
as a user intuitively I would choose --version to pick a specific version of the software from the given output-
Currently there is no documented switch in /? to do this. This is a fresh tool so such a design change is better done earlier than later.
Since the version information is duplicate I see no real reason other than consistency with other tools like Terminal commands to have this.
Please consider this thoughroughly.
The text was updated successfully, but these errors were encountered: