Skip to content

Commit dba319a

Browse files
committed
Check $Help parameter explictly
This is just to squash PSSA telling us that the -Help parameter is defined but not used.
1 parent 7ebdba1 commit dba319a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ if ($Bootstrap.IsPresent) {
2525
# Execute psake task(s)
2626
$psakeFile = './psakeFile.ps1'
2727
Set-BuildEnvironment -Force -WarningAction SilentlyContinue
28-
if ($PSCmdlet.ParameterSetName -eq 'Help') {
28+
if ($Help.IsPresent) {
2929
Get-PSakeScriptTasks -buildFile $psakeFile |
3030
Format-Table -Property Name, Description, Alias, DependsOn
3131
} else {
3232
Invoke-psake -buildFile $psakeFile -taskList $Task -nologo -Verbose:($VerbosePreference -eq 'Continue')
3333
exit ([int](-not $psake.build_success))
34-
}
34+
}

0 commit comments

Comments
 (0)