Skip to content

Commit

Permalink
(chocolateyGH-941) Get-ChocolateyUnzip aliases File for parity
Browse files Browse the repository at this point in the history
Get-ChocolateyUnzip uses `$FileFullPath`, which doesn't
match the parameter used in other functions. Add an alias for `$File` to
provide parity.
  • Loading branch information
ferventcoder committed Sep 1, 2016
1 parent e9f007c commit c0f0c41
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ This is the full path to the zip file. If embedding it in the package
next to the install script, the path will be like
`"$(Split-Path -Parent $MyInvocation.MyCommand.Definition)\\file.zip"`
In 0.10.1+, `File` is an alias for FileFullPath.
.PARAMETER Destination
This is a directory where you would like the unzipped files to end up.
If it does not exist, it will be created.
Expand All @@ -71,7 +73,7 @@ Get-ChocolateyUnzip -FileFullPath "c:\someFile.zip" -Destination $toolsDir
Install-ChocolateyZipPackage
#>
param(
[parameter(Mandatory=$true, Position=0)][string] $fileFullPath,
[alias("file")][parameter(Mandatory=$true, Position=0)][string] $fileFullPath,
[parameter(Mandatory=$true, Position=1)][string] $destination,
[parameter(Mandatory=$false, Position=2)][string] $specificFolder,
[parameter(Mandatory=$false, Position=3)][string] $packageName,
Expand Down

0 comments on commit c0f0c41

Please sign in to comment.