Skip to content

Accept boolish values for env-settable bool flags - #3668

Merged
itowlson merged 1 commit into
spinframework:mainfrom
ChihweiLHBird:cli-bool-arg-boolish-parser
Aug 18, 2026
Merged

Accept boolish values for env-settable bool flags#3668
itowlson merged 1 commit into
spinframework:mainfrom
ChihweiLHBird:cli-bool-arg-boolish-parser

Conversation

@ChihweiLHBird

@ChihweiLHBird ChihweiLHBird commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Supporting broader boolish values, like 1, 0, yes by adding BoolishValueParser.

Note that some input arguments are impacted by a conflicting issue caused by a clap issue clap-rs/clap#5591 which is a pre-existing issue before this PR. An example is even if DISABLE_WASMTIME_CACHE is set to false, it still conflicts to WASMTIME_CACHE_FILE. Clap check whether it's set rather than whether it's set to true.

Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
@itowlson

Copy link
Copy Markdown
Collaborator

To clarify, does this PR cause us to run into the Clap false conflicts issue, or do we already have that issue?

@ChihweiLHBird

Copy link
Copy Markdown
Contributor Author

To clarify, does this PR cause us to run into the Clap false conflicts issue, or do we already have that issue?

We already have it before this PR. I discovered the issue during working on this PR.

@itowlson
itowlson merged commit 860ff3b into spinframework:main Aug 18, 2026
17 checks passed
@ChihweiLHBird
ChihweiLHBird deleted the cli-bool-arg-boolish-parser branch August 18, 2026 19:51
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.

2 participants