Script Argument matching
问题 Does PowerShell do some sort of nearest match or autocompletion when dealing with arguments passed to a script? Given this code... [CmdletBinding()] Param( [string][Alias("aS")] $applySet, [string][Alias("cS")] $conformSet, [string][Alias("sL")] $setList, [Parameter(ValueFromRemainingArguments = $true)][Object[]]$extraParameters = @() ) Write-Host "s: $set" Write-Host "sL: $setList" Write-Host "aS: $applySet" Write-Host "cS: $conformSet" Write-Host "X: $extraParameters" If I use -junk "junk"