From 3fa09a3972e37ef19223819b84e4ad67d015d4dd Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Thu, 4 Jul 2024 18:31:40 -0400 Subject: [PATCH] Require at least one target for toolchain uninstalls (#4820) Closes https://github.com/astral-sh/uv/issues/4816. --- crates/uv-cli/src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/uv-cli/src/lib.rs b/crates/uv-cli/src/lib.rs index 94f49bf6e..39ce9a134 100644 --- a/crates/uv-cli/src/lib.rs +++ b/crates/uv-cli/src/lib.rs @@ -2063,10 +2063,10 @@ pub struct PythonListArgs { #[derive(Args)] #[allow(clippy::struct_excessive_bools)] pub struct PythonInstallArgs { - /// The Python versions to install. + /// The Python version(s) to install. /// /// If not provided, the requested Python version(s) will be read from the `.python-versions` - /// or `.python-version` files. If neither file is present, uv will check if it has + /// or `.python-version` 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. pub targets: Vec, @@ -2078,7 +2078,8 @@ pub struct PythonInstallArgs { #[derive(Args)] #[allow(clippy::struct_excessive_bools)] pub struct PythonUninstallArgs { - /// The Python versions to uninstall. + /// The Python version(s) to uninstall. + #[arg(required = true)] pub targets: Vec, }