From fbd6d8721492847f869e4353fda892ed65ecf7b1 Mon Sep 17 00:00:00 2001 From: mikcl <43545032+Mikcl@users.noreply.github.com> Date: Thu, 15 Feb 2024 23:26:16 +0000 Subject: [PATCH] uv-cache: Add hidden alias for --no-cache-dir (#1380) This is for compatability with pip install --no-cache-dir Closes https://github.com/astral-sh/uv/issues/1373 Signed-off-by: mikcl --- crates/uv-cache/src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/uv-cache/src/cli.rs b/crates/uv-cache/src/cli.rs index e4293367e..200409d62 100644 --- a/crates/uv-cache/src/cli.rs +++ b/crates/uv-cache/src/cli.rs @@ -11,7 +11,7 @@ use crate::Cache; #[derive(Parser, Debug, Clone)] pub struct CacheArgs { /// Avoid reading from or writing to the cache. - #[arg(global = true, long, short)] + #[arg(global = true, long, short, alias = "no-cache-dir")] no_cache: bool, /// Path to the cache directory.