mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-21 15:52:15 +00:00
Add -U
/-P
short flags for --upgrade
/--upgrade-package
(#1394)
Closes https://github.com/astral-sh/uv/issues/1340
This commit is contained in:
parent
896ab1c54f
commit
0f554b0913
1 changed files with 4 additions and 4 deletions
|
@ -256,12 +256,12 @@ struct PipCompileArgs {
|
||||||
find_links: Vec<FlatIndexLocation>,
|
find_links: Vec<FlatIndexLocation>,
|
||||||
|
|
||||||
/// Allow package upgrades, ignoring pinned versions in the existing output file.
|
/// Allow package upgrades, ignoring pinned versions in the existing output file.
|
||||||
#[clap(long)]
|
#[clap(long, short = 'U')]
|
||||||
upgrade: bool,
|
upgrade: bool,
|
||||||
|
|
||||||
/// Allow upgrades for a specific package, ignoring pinned versions in the existing output
|
/// Allow upgrades for a specific package, ignoring pinned versions in the existing output
|
||||||
/// file.
|
/// file.
|
||||||
#[clap(long)]
|
#[clap(long, short = 'P')]
|
||||||
upgrade_package: Vec<PackageName>,
|
upgrade_package: Vec<PackageName>,
|
||||||
|
|
||||||
/// Include distribution hashes in the output file.
|
/// Include distribution hashes in the output file.
|
||||||
|
@ -471,11 +471,11 @@ struct PipInstallArgs {
|
||||||
all_extras: bool,
|
all_extras: bool,
|
||||||
|
|
||||||
/// Allow package upgrades.
|
/// Allow package upgrades.
|
||||||
#[clap(long)]
|
#[clap(long, short = 'U')]
|
||||||
upgrade: bool,
|
upgrade: bool,
|
||||||
|
|
||||||
/// Allow upgrade of a specific package.
|
/// Allow upgrade of a specific package.
|
||||||
#[clap(long)]
|
#[clap(long, short = 'P')]
|
||||||
upgrade_package: Vec<PackageName>,
|
upgrade_package: Vec<PackageName>,
|
||||||
|
|
||||||
/// Reinstall all packages, regardless of whether they're already installed.
|
/// Reinstall all packages, regardless of whether they're already installed.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue