From e8b8d236a144b937473f9ab7efcfb945962f2891 Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Tue, 8 Oct 2024 16:43:50 -0500 Subject: [PATCH] docs: add alias context to `uv tool run --help` command (#7695) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Adds detail to the `uv tool run --help` CLI that lets users know about the shorthand, `uvx` ## Test Plan Building and running CLI ``` …📝✓] via 🐋 orbstack via 🎁 v0.4.16 via  pyenv via ⚙️ v1.81.0on ☁️ (us-east-2) took 3s ➜ ./target/debug/uv tool run --help Run a command provided by a Python package. Also available via the alias `uvx`. Usage: uv tool run [OPTIONS] [COMMAND] ... You can also use `uvx` as an alias for `uv tool run`. Use `uv help tool run` for more details. ``` --------- Co-authored-by: Zanie Blue --- crates/uv-cli/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/uv-cli/src/lib.rs b/crates/uv-cli/src/lib.rs index 4835ea3e5..80965752b 100644 --- a/crates/uv-cli/src/lib.rs +++ b/crates/uv-cli/src/lib.rs @@ -3262,6 +3262,11 @@ pub enum ToolCommand { /// /// Packages are installed into an ephemeral virtual environment in the uv /// cache directory. + #[command( + after_help = "Use `uvx` as a shortcut for `uv tool run`.\n\n\ + Use `uv help tool run` for more details.", + after_long_help = "" + )] Run(ToolRunArgs), /// Hidden alias for `uv tool run` for the `uvx` command #[command(