Improve docs for uv python list --only-downloads and --only-installed (#12916)

"Only show Python downloads, exclude installed distributions." might be
misunderstood as excluding installed distributions from `uv python list
--only-downloads`, implying that versions already installed won’t be
shown.
This commit is contained in:
Jo 2025-04-16 23:51:47 +08:00 committed by GitHub
parent d9243cee7e
commit fc3dacf9a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View file

@ -4643,15 +4643,15 @@ pub struct PythonListArgs {
#[arg(long, alias = "all_architectures")]
pub all_arches: bool,
/// Only show installed Python versions, exclude available downloads.
/// Only show installed Python versions.
///
/// By default, available downloads for the current platform are shown.
/// By default, installed distributions and available downloads for the current platform are shown.
#[arg(long, conflicts_with("only_downloads"))]
pub only_installed: bool,
/// Only show Python downloads, exclude installed distributions.
/// Only show available Python downloads.
///
/// By default, available downloads for the current platform are shown.
/// By default, installed distributions and available downloads for the current platform are shown.
#[arg(long, conflicts_with("only_installed"))]
pub only_downloads: bool,