From bef0b8994e997fc210f2a83f9b57e78ffb1840cd Mon Sep 17 00:00:00 2001 From: TheCakeIsNaOH Date: Mon, 22 Feb 2021 19:23:37 -0600 Subject: [PATCH] (GH-2203) Get-ChocolateyUnzip add unzipLocation alias Install-ChocolateyZipPackage already has a Destination alias to UnzipLocation. This adds the inverse case, so Get-ChocolateyUnzip has an alias UnzipLocation to the Destination parameter. The reason for adding this is to reduce frustration from adding the wrong parameter name, and then having to fix it. --- .../helpers/functions/Get-ChocolateyUnzip.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chocolatey.resources/helpers/functions/Get-ChocolateyUnzip.ps1 b/src/chocolatey.resources/helpers/functions/Get-ChocolateyUnzip.ps1 index 944c9ff864..1a47f97815 100644 --- a/src/chocolatey.resources/helpers/functions/Get-ChocolateyUnzip.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-ChocolateyUnzip.ps1 @@ -88,7 +88,7 @@ Install-ChocolateyZipPackage #> param( [alias("file")][parameter(Mandatory=$false, Position=0)][string] $fileFullPath, - [parameter(Mandatory=$true, Position=1)][string] $destination, + [alias("unzipLocation")][parameter(Mandatory=$true, Position=1)][string] $destination, [parameter(Mandatory=$false, Position=2)][string] $specificFolder, [parameter(Mandatory=$false, Position=3)][string] $packageName, [alias("file64")][parameter(Mandatory=$false)][string] $fileFullPath64,