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 <mikesmikes400@gmail.com>
This commit is contained in:
mikcl
2024-02-15 23:26:16 +00:00
committed by GitHub
parent 18a7c079de
commit fbd6d87214
+1 -1
View File
@@ -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.