Skip to content

Commit

Permalink
(GH-819) Fix - NotSilent install failure binding
Browse files Browse the repository at this point in the history
Attempting a non-silent install fails with `Cannot bind argument to
parameter 'statements' because it is an empty string.`  This is due to
auto documentation changes and setting parameter values mandatory.
Ensure that statements is no longer mandatory to fix passing empty
arguments along.
  • Loading branch information
ferventcoder committed Jun 22, 2016
1 parent b386aee commit 595da0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Install-ChocolateyPackage
Install-ChocolateyInstallPackage
#>
param(
[parameter(Mandatory=$true, Position=0)][string] $statements,
[parameter(Mandatory=$false, Position=0)][string] $statements,
[parameter(Mandatory=$false, Position=1)][string] $exeToRun = 'powershell',
[parameter(Mandatory=$false)][switch] $minimized,
[parameter(Mandatory=$false)][switch] $noSleep,
Expand Down

0 comments on commit 595da0d

Please sign in to comment.