From a9a7b0069bd18fe6bfcfda960f1d210d01015961 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Mon, 22 Jan 2024 22:59:43 -0600 Subject: [PATCH] Add `--force-reinstall` alias for `--reinstall` to match pip interface (#1045) Tested with `cargo run -- pip install pip-tools --force-reinstall`. The alias is hidden. --- crates/puffin/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/puffin/src/main.rs b/crates/puffin/src/main.rs index 9d72db1b2..e2b5ce0c6 100644 --- a/crates/puffin/src/main.rs +++ b/crates/puffin/src/main.rs @@ -245,7 +245,7 @@ struct PipSyncArgs { /// Reinstall all packages, overwriting any entries in the cache and replacing any existing /// packages in the environment. - #[clap(long)] + #[clap(long, alias = "force-reinstall")] reinstall: bool, /// Reinstall a specific package, overwriting any entries in the cache and replacing any @@ -360,7 +360,7 @@ struct PipInstallArgs { /// Reinstall all packages, overwriting any entries in the cache and replacing any existing /// packages in the environment. - #[clap(long)] + #[clap(long, alias = "force-reinstall")] reinstall: bool, /// Reinstall a specific package, overwriting any entries in the cache and replacing any