Skip to content

[switch] $Force parameter not supported when checking for proper SupportsShouldContinue use #427

@heaths

Description

@heaths

Originally reported at: PowerShell/vscode-powershell#72

Maybe it's an older syntax, but it used to be that [switch] was how you declared Boolean parameters. They still have the advantage of easily being able to determine if they were explicitly set without checking $PSBoundParameters. Whatever the case (or maybe a rule needs to be created for that), checking that I properly use ShouldContinue (which I otherwise do) should accept a [switch] $Force parameter and not expect only a [bool] $Force parameter.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions