Convert bool param to Switch

This commit is contained in:
Manuel Thalmann 2024-03-20 21:26:11 +01:00
parent 3617798a0e
commit 0f7ff4a2a6

View file

@ -6,7 +6,7 @@ $null = New-Module {
[string]$Category = $null,
[Parameter(Position=0, Mandatory=$true)]
[string]$Statement,
[bool]$Overwrite = $false
[switch]$Overwrite = $false
)
[System.Collections.Generic.List[string]] $shells = @();