From 0f554b09135d3e2f2918c889e1918db289b25ad8 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Thu, 15 Feb 2024 19:34:19 -0600 Subject: [PATCH] Add `-U`/`-P` short flags for `--upgrade`/`--upgrade-package` (#1394) Closes https://github.com/astral-sh/uv/issues/1340 --- crates/uv/src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/uv/src/main.rs b/crates/uv/src/main.rs index 0026c9fe1..338ef7a02 100644 --- a/crates/uv/src/main.rs +++ b/crates/uv/src/main.rs @@ -256,12 +256,12 @@ struct PipCompileArgs { find_links: Vec, /// Allow package upgrades, ignoring pinned versions in the existing output file. - #[clap(long)] + #[clap(long, short = 'U')] upgrade: bool, /// Allow upgrades for a specific package, ignoring pinned versions in the existing output /// file. - #[clap(long)] + #[clap(long, short = 'P')] upgrade_package: Vec, /// Include distribution hashes in the output file. @@ -471,11 +471,11 @@ struct PipInstallArgs { all_extras: bool, /// Allow package upgrades. - #[clap(long)] + #[clap(long, short = 'U')] upgrade: bool, /// Allow upgrade of a specific package. - #[clap(long)] + #[clap(long, short = 'P')] upgrade_package: Vec, /// Reinstall all packages, regardless of whether they're already installed.