uv
4e799105 - Fix `UV_NO_DEFAULT_GROUPS` rejecting truthy values like `1` (#18057)

Commit
2 days ago
Fix `UV_NO_DEFAULT_GROUPS` rejecting truthy values like `1` (#18057) ## Summary Fixes #18002. `UV_NO_DEFAULT_GROUPS=1 uv sync` currently fails with: ``` error: invalid value '1' for '--no-default-groups' [possible values: true, false] ``` This is because `--no-default-groups` uses clap's default bool parser, which only accepts `true`/`false`. Meanwhile, `--no-dev` (and `UV_NO_DEV`) already uses `BoolishValueParser`, which accepts `1`, `yes`, `on`, `true` (and their negatives). ## Fix Add `value_parser = clap::builder::BoolishValueParser::new()` to all four `--no-default-groups` argument definitions (`SyncArgs`, `RunArgs`, `ExportArgs`, `TreeArgs`), matching the existing pattern used by `--no-dev`. ## Test Plan `UV_NO_DEFAULT_GROUPS=1 uv sync` should now succeed instead of erroring. Co-authored-by: Ocean <ocean@Mac-mini-von-Ocean.local>
Parents
Loading