From ad830d1ca591c06ae67d87ae864985aa31e3e68f Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 18 Dec 2024 14:32:42 -0600 Subject: [PATCH] Fix `uv python install --default` note about multiple requests --- crates/uv-cli/src/lib.rs | 3 +-- docs/reference/cli.md | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/uv-cli/src/lib.rs b/crates/uv-cli/src/lib.rs index 7609f11549ba7..ee5328f013920 100644 --- a/crates/uv-cli/src/lib.rs +++ b/crates/uv-cli/src/lib.rs @@ -4354,8 +4354,7 @@ pub struct PythonInstallArgs { /// 3.13+freethreaded with `--default` will include in `python3t` and `pythont`, not `python3` /// and `python`. /// - /// If multiple Python versions are requested during the installation, the first request will be - /// the default. + /// If multiple Python versions are requested, uv will exit with an error. #[arg(long)] pub default: bool, } diff --git a/docs/reference/cli.md b/docs/reference/cli.md index 9acee6e935d10..12a46675580df 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -4709,7 +4709,7 @@ uv python install [OPTIONS] [TARGETS]...

Alternative Python variants will still include their tag. For example, installing 3.13+freethreaded with --default will include in python3t and pythont, not python3 and python.

-

If multiple Python versions are requested during the installation, the first request will be the default.

+

If multiple Python versions are requested, uv will exit with an error.

--directory directory

Change to the given directory prior to running the command.