-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
poetry run
could handle args better
#2741
Comments
In the current implementation, it appears that when I'm not sure why What I suggested seems to be what @sdispater did @ 65ba952, which was then reverted back @ 8fb4f45, so it appears to be a current limitation with |
A more-or-less standard approach is to say that, yes, this is how it is supposed to work and instead use the That will be a pretty major breaking UX change, so, as a compromise, maybe it would be better to say that everything after the first positional argument (command name) is arguments of the commands, but everything before it is ours. This would allow both I’d like to point out that |
These UX issues have been fixed on $ poetry --version
Poetry (version 1.2.0a2)
$ poetry run
Not enough arguments (missing: "args")
$ poetry run --help
Description:
Runs a command in the appropriate environment.
... |
got Not enough arguments (missing: "args") when trying to run poetry run |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Ubuntu 20.04
Poetry version: 1.0.10
Link of a Gist with the contents of your pyproject.toml file: N/A
Issue
When bad arguments are passed to
poetry run
, it is not immediately obvious what is wrong.When no argument is provided,
poetry run
does not complain about the missing argument:Contrast with
poetry new
:Similarly, if given a flag, it might not be obvious that it is looking for an executable:
The text was updated successfully, but these errors were encountered: