Enable constraints in uv tool upgrade CLI (#9375)

## Summary

Closes https://github.com/astral-sh/uv/issues/9321.
This commit is contained in:
Charlie Marsh 2024-11-25 17:22:30 -05:00 committed by GitHub
parent 0158717ae6
commit 5759cb9891
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 76 additions and 23 deletions

View file

@ -3849,9 +3849,9 @@ pub struct ToolUninstallArgs {
#[derive(Args)]
#[allow(clippy::struct_excessive_bools)]
pub struct ToolUpgradeArgs {
/// The name of the tool to upgrade.
/// The name of the tool to upgrade, along with an optional version specifier.
#[arg(required = true)]
pub name: Vec<PackageName>,
pub name: Vec<String>,
/// Upgrade all tools.
#[arg(long, conflicts_with("name"))]