uv
uv copied to clipboard
On error in `uvx`, hint on proper `--verbose` usage if it was provided to the subcommand
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`