Skip to content

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

@zanieb

Description

@zanieb

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`

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to existing functionalityerror messagesMessaging when something goes wronghelp wantedContribution especially encouraged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions