mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-09 18:12:07 +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>,
|
||||
|
||||
/// 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<PackageName>,
|
||||
|
||||
/// 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<PackageName>,
|
||||
|
||||
/// Reinstall all packages, regardless of whether they're already installed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue