Title: Tab expansion for cmdlet arguments prefers aliases · Issue #6150 · PowerShell/PowerShell · GitHub
Open Graph Title: Tab expansion for cmdlet arguments prefers aliases · Issue #6150 · PowerShell/PowerShell
X Title: Tab expansion for cmdlet arguments prefers aliases · Issue #6150 · PowerShell/PowerShell
Description: Steps to reproduce I've experienced this with the Import-Module cmdlet, but it may be present in other cmdlets too. I've used the PowerShellGet module in my examples but it happens with every other module I've tried. The Import-Module cm...
Open Graph Description: Steps to reproduce I've experienced this with the Import-Module cmdlet, but it may be present in other cmdlets too. I've used the PowerShellGet module in my examples but it happens with every other...
X Description: Steps to reproduce I've experienced this with the Import-Module cmdlet, but it may be present in other cmdlets too. I've used the PowerShellGet module in my examples but it happens with eve...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/6150
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tab expansion for cmdlet arguments prefers aliases","articleBody":"Steps to reproduce\r\n------------------\r\nI've experienced this with the Import-Module cmdlet, but it may be present in other cmdlets too. I've used the PowerShellGet module in my examples but it happens with every other module I've tried. The Import-Module cmdlet has a parameter MinimumVersion with the alias Version and the common parameter Verbose.\r\n\r\nIn the default PowerShell 6 console I type:\r\n```powershell\r\nImport-Module PowerShellGet -ve\r\n```\r\nI then type [TAB] which results in:\r\n```powershell\r\nImport-Module PowerShellGet -Version\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n I expect that when I use tab completion with -v, -ve, or -ver, that the suggestions will cycle between -Version and -Verbose. After the second [TAB] key press I expect to see:\r\n```powershell\r\nImport-Module PowerShellGet -Verbose\r\n```\r\n\r\nActual behavior\r\n---------------\r\nAfter the second [TAB] key press I actually see:\r\n```powershell\r\nImport-Module PowerShellGet -Version\r\n```\r\n\r\nIf I type -ver and then [TAB], the behavior is the same; I only see -Version. If I type -v and then [TAB], the behavior is as expected, the suggestions cycle between -Version and -Verbose.\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n> $PSVersionTable\r\nName Value\r\n---- -----\r\nPSVersion 6.0.1\r\nPSEdition Core\r\nGitCommitId v6.0.1\r\nOS Microsoft Windows 10.0.16299\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n","author":{"url":"https://github.com/djohnst10","@type":"Person","name":"djohnst10"},"datePublished":"2018-02-13T21:08:58Z","url":"https://github.com/PowerShell/PowerShell/issues/6150"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ddf11af0-a929-45b5-c2c6-2bb8c77db8ba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 970A:3AC570:15EA46:1E43E1:6AFD5DDE |
| html-safe-nonce | a1bd03e5f6acb00f53f510759c20a384fe95e20b1897c7e58db2bb32d52095f1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzBBOjNBQzU3MDoxNUVBNDY6MUU0M0UxOjZBRkQ1RERFIiwidmlzaXRvcl9pZCI6IjM1MDU5NjQyMDkwMzg3Nzc4MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 125f35519f75026f7304264e40c8bb1830dad483bd20c7d295fe4ceeb68620d0 |
| hovercard-subject-tag | issue:296885930 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/6150/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9ffb42e5e5ba80fcda141e0c2f56dbdb6d72d3bf8a54d12c399a7eace59a2634/PowerShell/PowerShell/issues/6150 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9ffb42e5e5ba80fcda141e0c2f56dbdb6d72d3bf8a54d12c399a7eace59a2634/PowerShell/PowerShell/issues/6150 |
| og:image:alt | Steps to reproduce I've experienced this with the Import-Module cmdlet, but it may be present in other cmdlets too. I've used the PowerShellGet module in my examples but it happens with every other... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | djohnst10 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width