You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uv suggests the wrong argument when creating a new project with a wrong --backend argument
uv init --lib --backend maturin no-name
It returns the following error message:
error: unexpected argument '--backend' found
tip: a similar argument exists: '--package'
Usage: uv init <PATH|--name <NAME>|--virtual|--package|--no-package|--app|--lib|--script|--vcs <VCS>|--build-backend <BUILD_BACKEND>|--no-readme|--author-from <AUTHOR_FROM>|--no-pin-python|--no-workspace|--python <PYTHON>>
For more information, try '--help'.
I was expecting the suggestion to be a similar argument exists: --build-backend
Version:
uv --version
uv 0.4.25 (97eb6ab4a 2024-10-21)
The text was updated successfully, but these errors were encountered:
I guess we can declare a hidden --backend argument with UnknownArgumentValueParser and suggest the proper one. There are some minor caveats, as discussed in clap-rs/clap#5781 (though that mostly focused on subcommands).
uv
suggests the wrong argument when creating a new project with a wrong--backend
argumentIt returns the following error message:
I was expecting the suggestion to be a similar argument exists:
--build-backend
Version:
The text was updated successfully, but these errors were encountered: