Fix uv python install --default note about multiple requests (#10011)

This commit is contained in:
Zanie Blue
2024-12-18 16:12:54 -06:00
committed by GitHub
parent 4d3c1b325e
commit 1d8dac17fd
3 changed files with 3 additions and 5 deletions
+1 -2
View File
@@ -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,
}
+1 -2
View File
@@ -540,8 +540,7 @@ fn help_subsubcommand() {
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.
Cache options:
-n, --no-cache
+1 -1
View File
@@ -4709,7 +4709,7 @@ uv python install [OPTIONS] [TARGETS]...
<p>Alternative Python variants will still include their tag. For example, installing 3.13+freethreaded with <code>--default</code> will include in <code>python3t</code> and <code>pythont</code>, not <code>python3</code> and <code>python</code>.</p>
<p>If multiple Python versions are requested during the installation, the first request will be the default.</p>
<p>If multiple Python versions are requested, uv will exit with an error.</p>
</dd><dt><code>--directory</code> <i>directory</i></dt><dd><p>Change to the given directory prior to running the command.</p>