Fix display name for uvx --version (#13109)

Based on #13108 because I don't want to deal with rebasing conflicts
across `main` and `release/070`.

```
❯ .uvx --version
uv-tool-uvx 0.6.16+23 (33b8b7340 2025-04-25)

❯ uvx --version
uvx 0.6.16+23 (33b8b7340 2025-04-25)
```

For posterity, chased this down via
https://github.com/clap-rs/clap/pull/3693 and
https://github.com/clap-rs/clap/issues/1382
This commit is contained in:
Zanie Blue 2025-04-28 11:19:48 -05:00
parent 60a164abbb
commit e8524ebea4

View file

@ -4063,6 +4063,7 @@ pub enum ToolCommand {
about = "Run a command provided by a Python package.",
after_help = "Use `uv help tool run` for more details.",
after_long_help = "",
display_name = "uvx",
long_version = crate::version::uv_self_version()
)]
Uvx(UvxArgs),