Skip to content

Conversation

@MathiasVP
Copy link
Collaborator

Previously, we did not handle switch arguments when constructing the AST.

This PR fixes this by synthesizing a Boolean $true argument so that a switch argument such as Foo -MyFlag looks the same (from the AST point-of-view) as Foo -MyFlag:$true.

Thanks for reporting this @chanel-y! 🙇

Commit-by-commit review recommended.

@MathiasVP MathiasVP merged commit 6a5d087 into main Apr 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants