Skip to content

Commit 4f89d36

Browse files
it-praktykvors
authored andcommitted
Correct usage of Force under Update-MarkdownHelpModule (#438)
1 parent 1f92a39 commit 4f89d36

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/platyPS/platyPS.psm1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ function New-MarkdownHelp
7373

7474
[hashtable]$Metadata,
7575

76-
[Parameter(
77-
ParameterSetName="FromCommand")]
76+
[Parameter(ParameterSetName="FromCommand")]
7877
[string]$OnlineVersionUrl = '',
7978

8079
[Parameter(Mandatory=$true)]
@@ -653,7 +652,7 @@ function Update-MarkdownHelpModule
653652
if ( -not ($updatedCommands -contains $_) )
654653
{
655654
log ($LocalizedData.CreatingNewMarkdownForCommand -f $_)
656-
$newFiles = New-MarkdownHelp -Command $_ -OutputFolder $modulePath -AlphabeticParamsOrder:$AlphabeticParamsOrder
655+
$newFiles = New-MarkdownHelp -Command $_ -OutputFolder $modulePath -AlphabeticParamsOrder:$AlphabeticParamsOrder -Force:$Force
657656
$newFiles # yeild
658657
}
659658
}
@@ -812,7 +811,7 @@ function New-ExternalHelp
812811
Write-Verbose -Message ($LocalizedData.OutputPathAsDirectory -f '[New-ExternalHelp]', $OutputPath)
813812
}
814813

815-
if ( -not $ShowProgress.IsPresent -or $(Get-Variable -Name IsCoreClr -ValueOnly -ErrorAction SilentlyContinue) )
814+
if ( -not $ShowProgress -or $(Get-Variable -Name IsCoreClr -ValueOnly -ErrorAction SilentlyContinue) )
816815
{
817816
Function Write-Progress() {}
818817
}

0 commit comments

Comments
 (0)