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.
This commit is contained in:
Zanie Blue
2024-01-22 22:59:43 -06:00
committed by GitHub
parent a87e071b5e
commit a9a7b0069b
+2 -2
View File
@@ -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