From 5802858e1eeb59d0a92a1134dfeaab13c3318dd3 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chocolatey.resources/helpers/functions/Get-ChocolateyUnzip.ps1 b/src/chocolatey.resources/helpers/functions/Get-ChocolateyUnzip.ps1 index 06763379b2..3b28f4c272 100644 --- a/src/chocolatey.resources/helpers/functions/Get-ChocolateyUnzip.ps1 +++ b/src/chocolatey.resources/helpers/functions/Get-ChocolateyUnzip.ps1 @@ -88,7 +88,8 @@ Install-ChocolateyZipPackage #> param( [alias("file")][parameter(Mandatory=$false, Position=0)][string] $fileFullPath, - [parameter(Mandatory=$true, Position=1)][string] $destination, + [parameter(Mandatory=$true, Position=1)] + [alias("unzipLocation")][string] $destination, [parameter(Mandatory=$false, Position=2)][string] $specificFolder, [parameter(Mandatory=$false, Position=3)][string] $packageName, [alias("file64")][parameter(Mandatory=$false)][string] $fileFullPath64,