Skip to content

Commit

Permalink
(GH-2203) Get-ChocolateyUnzip add unzipLocation alias
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
TheCakeIsNaOH authored and gep13 committed Apr 16, 2021
1 parent c157be0 commit bef0b89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bef0b89

Please sign in to comment.