uv icon indicating copy to clipboard operation
uv copied to clipboard

On error in `uvx`, hint on proper `--verbose` usage if it was provided to the subcommand

Open zanieb opened this issue 1 week ago • 2 comments

Summary

When uv fails with an internal error, people will re-run it with --verbose but can accidentally provide --verbose to the subcommand instead. We should hint in this situation

Example

e.g.,

uvx foo-does-not-exist --verbose

if we fail to resolve the package, we should notice the user provided --verbose and hint

error: ...

hint: You provided `--verbose` to `foo-does-not-exist`, did you mean to provide it to uv? e.g., with `uvx --verbose foo-does-not-exist`

zanieb avatar Nov 19 '25 16:11 zanieb