Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: truly respect --allow-all to allow all components #61

Merged

Conversation

kateinoigakukun
Copy link
Contributor

ArgAction::SetTrue is not the right action for allow_xxx options, as they should default to None instead of Some(false) when the option itself is not specified. The wrong default value led to the --allow-all option not being respected, as the allow_xxx.unwrap_or(allow_all) always ignored the allow_all value.

`ArgAction::SetTrue` is not the right action for `allow_xxx` options, as
they should default to `None` instead of `Some(false)` when the option
itself is not specified. The wrong default value led to the `--allow-all`
option not being respected, as the `allow_xxx.unwrap_or(allow_all)`
always ignored the `allow_all` value.
@guybedford
Copy link
Collaborator

Amazing, thanks for spotting that one.

@guybedford guybedford merged commit 6585bdf into bytecodealliance:main Jun 4, 2024
2 checks passed
@kateinoigakukun kateinoigakukun deleted the katei/fix-allow-options branch July 3, 2024 05:36
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.

None yet

2 participants