Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Feb 13, 2025
1 parent d46c12a commit b090c36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 1 addition & 3 deletions crates/uv-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4499,7 +4499,7 @@ pub struct PythonInstallArgs {
/// The Python version(s) to install.
///
/// If not provided, the requested Python version(s) will be read from the `UV_PYTHON`
/// environment variable then the `.python-versions` or `.python-version` files. If none of the
/// environment variable then `.python-versions` or `.python-version` files. If none of the
/// above are present, uv will check if it has installed any Python versions. If not, it will
/// install the latest stable version of Python.
///
Expand Down Expand Up @@ -4565,8 +4565,6 @@ pub struct PythonUninstallArgs {

/// The Python version(s) to uninstall.
///
/// If not provided, the target will be read from the `UV_PYTHON` environment variable.
///
/// See `uv help python` to view supported request formats.
#[arg(required = true)]
pub targets: Vec<String>,
Expand Down
8 changes: 5 additions & 3 deletions docs/reference/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -4788,7 +4788,7 @@ uv python install [OPTIONS] [TARGETS]...

<dl class="cli-reference"><dt><code>TARGETS</code></dt><dd><p>The Python version(s) to install.</p>

<p>If not provided, the requested Python version(s) will be read from the <code>.python-versions</code> or <code>.python-version</code> files. If neither file is present, uv will check if it has installed any Python versions. If not, it will install the latest stable version of Python.</p>
<p>If not provided, the requested Python version(s) will be read from the <code>UV_PYTHON</code> environment variable then <code>.python-versions</code> or <code>.python-version</code> files. If none of the above are present, uv will check if it has installed any Python versions. If not, it will install the latest stable version of Python.</p>

<p>See <a href="#uv-python">uv python</a> to view supported request formats.</p>

Expand Down Expand Up @@ -5371,12 +5371,14 @@ Uninstall Python versions
<h3 class="cli-reference">Usage</h3>

```
uv python uninstall [OPTIONS] [TARGETS]...
uv python uninstall [OPTIONS] <TARGETS>...
```

<h3 class="cli-reference">Arguments</h3>

<dl class="cli-reference"><dt><code>TARGETS</code></dt><dd><p>The Python version(s) to uninstall. targets can also be set through the <code>UV_PYTHON</code> env variable, however the clap env functionality is not used here to avoid conflicts with the <code>--all</code> flag if target set through env. See <a href="#uv-python">uv python</a> to view supported request formats</p>
<dl class="cli-reference"><dt><code>TARGETS</code></dt><dd><p>The Python version(s) to uninstall.</p>

<p>See <a href="#uv-python">uv python</a> to view supported request formats.</p>

</dd></dl>

Expand Down

0 comments on commit b090c36

Please sign in to comment.